test/match_test.rb in searchkick-0.7.9 vs test/match_test.rb in searchkick-0.8.0

- old
+ new

@@ -137,9 +137,18 @@ def test_all store_names ["Product A", "Product B"] assert_search "*", ["Product A", "Product B"] end + def test_no_arguments + assert_equal [], Product.search.to_a + end + + def test_no_term + store_names ["Product A"] + assert_equal ["Product A"], Product.search(where: {name: "Product A"}).map(&:name) + end + def test_to_be_or_not_to_be store_names ["to be or not to be"] assert_search "to be", ["to be or not to be"] end