Commit 27a14dc83a6c1137e350f13cf6f3f75102a8b848
1 parent
9e2e074b
Exists in
master
and in
19 other branches
Added test for no records - #1032
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
test/multi_search_test.rb
... | ... | @@ -33,4 +33,10 @@ class MultiSearchTest < Minitest::Test |
33 | 33 | Searchkick.multi_search([products], retry_misspellings: true) |
34 | 34 | assert_equal ["abc", "abd"], products.map(&:name) |
35 | 35 | end |
36 | + | |
37 | + # https://github.com/ankane/searchkick/issues/1032 | |
38 | + def test_no_records | |
39 | + products = Product.search("*", execute: false) | |
40 | + assert Searchkick.multi_search([products])[0].results | |
41 | + end | |
36 | 42 | end | ... | ... |