test/index_test.rb in searchkick-2.3.0 vs test/index_test.rb in searchkick-2.3.1
- old
+ new
@@ -130,9 +130,14 @@
skip unless elasticsearch_below50?
store [{name: "Product A", alt_description: "Hello"}]
assert_search "*", [], where: {alt_description: "Hello"}
end
+ def test_filterable_non_string
+ store [{name: "Product A", store_id: 1}]
+ assert_search "*", ["Product A"], where: {store_id: 1}
+ end
+
def test_large_value
skip if nobrainer?
large_value = 1000.times.map { "hello" }.join(" ")
store [{name: "Product A", text: large_value}], Region
assert_search "product", ["Product A"], {}, Region