Commit 43ad72520f6d9b6ae5c9514f40a1aa638a48f96e
1 parent
a1466b69
Exists in
relation
Added none [skip ci]
Showing
2 changed files
with
14 additions
and
0 deletions
Show diff stats
lib/searchkick/relation.rb
test/relation_test.rb
... | ... | @@ -17,6 +17,11 @@ class RelationTest < Minitest::Test |
17 | 17 | assert_search_relation [], Product.search("*").where(name: "Product A").where(name: "Product B") |
18 | 18 | end |
19 | 19 | |
20 | + def test_none | |
21 | + store_names ["Product A", "Product B"] | |
22 | + assert_search_relation [], Product.search("*").none | |
23 | + end | |
24 | + | |
20 | 25 | def test_parameters |
21 | 26 | skip unless defined?(ActiveRecord) |
22 | 27 | require "action_controller" | ... | ... |