test/multi_search_test.rb in searchkick-2.3.1 vs test/multi_search_test.rb in searchkick-2.3.2

- old
+ new

@@ -17,6 +17,20 @@ stores = Store.search("*", order: [:bad_field], execute: false) Searchkick.multi_search([products, stores]) assert !products.error assert stores.error end + + def test_misspellings_below_unmet + store_names ["abc", "abd", "aee"] + products = Product.search("abc", misspellings: {below: 2}, execute: false) + Searchkick.multi_search([products]) + assert_equal ["abc"], products.map(&:name) + end + + def test_misspellings_below_unmet_retry + store_names ["abc", "abd", "aee"] + products = Product.search("abc", misspellings: {below: 2}, execute: false) + Searchkick.multi_search([products], retry_misspellings: true) + assert_equal ["abc", "abd"], products.map(&:name) + end end