Running tests on model fails to return results. #7

ekampp opened this Issue Feb 15, 2013 · 2 comments


None yet
2 participants

ekampp commented Feb 15, 2013

Hi there.

My problem is, that after setting up the application (as per your instructions in the readme), I can't make my model specs return a proper sunspot search result set.

I have the following test, written i rspec, on an education model, which fails.

describe ".search", solr: true do
  let(:educations) { [ create(:education, name: "Folkeskolen 9. kl") ] }
  before{ educations }
  subject do do
      fulltext "Folkeskolen 9. kl"
  its(:results){ should eq educations }

I would have expected the results method to return a set of the actual educations in the database (I have checked, they are there!) but it doesn't.

Is there something I'm missing, or is this in fact unwanted behaviour?

// Emil


krisleech commented Apr 15, 2013

@ekampp Do you still need help with this? And if so, is it something you can still provide feedback on?

ekampp commented Apr 15, 2013

No, thank you, though.

I completely forgot about this ticket. I will close it, since it's no longer relevant.

@ekampp ekampp closed this Apr 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment