test/index_test.rb in searchkick-0.8.2 vs test/index_test.rb in searchkick-0.8.3
- old
+ new
@@ -51,9 +51,11 @@
def test_record_not_found
store_names ["Product A", "Product B"]
Product.where(name: "Product A").delete_all
assert_search "product", ["Product B"]
+ ensure
+ Product.reindex
end
def test_bad_mapping
Product.searchkick_index.delete
store_names ["Product A"]