spec/thinking_sphinx_spec.rb in thinking-sphinx-5.5.1 vs spec/thinking_sphinx_spec.rb in thinking-sphinx-5.6.0
- old
+ new
@@ -14,11 +14,11 @@
it "returns the total entries of the search object" do
expect(ThinkingSphinx.count).to eq(search.total_entries)
end
it "passes through the given query and options" do
- expect(ThinkingSphinx::Search).to receive(:new).with('foo', :bar => :baz).
+ expect(ThinkingSphinx::Search).to receive(:new).with('foo', { :bar => :baz }).
and_return(search)
ThinkingSphinx.count('foo', :bar => :baz)
end
end
@@ -33,10 +33,10 @@
it "returns a new search object" do
expect(ThinkingSphinx.search).to eq(search)
end
it "passes through the given query and options" do
- expect(ThinkingSphinx::Search).to receive(:new).with('foo', :bar => :baz).
+ expect(ThinkingSphinx::Search).to receive(:new).with('foo', { :bar => :baz }).
and_return(search)
ThinkingSphinx.search('foo', :bar => :baz)
end
end