Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Running tests on model fails to return results. #7

ekampp opened this Issue · 2 comments

2 participants


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


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


No, thank you, though.

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

@ekampp ekampp closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.