spec/api/query/spellcheck_examples.rb in sunspot-2.2.7 vs spec/api/query/spellcheck_examples.rb in sunspot-2.2.8

- old
+ new

@@ -4,17 +4,17 @@ it 'sends spellcheck parameters to solr' do search do spellcheck end - connection.should have_last_search_including(:spellcheck, true) + expect(connection).to have_last_search_including(:spellcheck, true) end it "sends additional spellcheck parameters with camel casing" do search do spellcheck :only_more_popular => true, :count => 5 end - connection.should have_last_search_including('spellcheck.onlyMorePopular', true) - connection.should have_last_search_including('spellcheck.count', 5) + expect(connection).to have_last_search_including('spellcheck.onlyMorePopular', true) + expect(connection).to have_last_search_including('spellcheck.count', 5) end end