Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Running tests on model fails to return results. #7

Closed
ekampp opened this Issue · 2 comments

2 participants

@ekampp

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
    Education.search do
      fulltext "Folkeskolen 9. kl"
    end
  end
  its(:results){ should eq educations }
end

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
Collaborator

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

@ekampp

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.