spec/thinking_sphinx/search/query_spec.rb in thinking-sphinx-3.3.0 vs spec/thinking_sphinx/search/query_spec.rb in thinking-sphinx-3.4.0
- old
+ new
@@ -72,7 +72,14 @@
query = ThinkingSphinx::Search::Query.new 'tasty', :title => 'pancakes',
:ingredients => nil
expect(query.to_s).to eq('tasty @title pancakes')
end
+
+ it "handles multiple fields for a single condition" do
+ query = ThinkingSphinx::Search::Query.new '',
+ [:title, :content] => 'pancakes'
+
+ expect(query.to_s).to eq('@(title,content) pancakes')
+ end
end
end