test/test_helper.rb in searchkick-0.2.1 vs test/test_helper.rb in searchkick-0.2.2
- old
+ new
@@ -61,10 +61,13 @@
end
class Store < ActiveRecord::Base
end
+Product.index.delete if Product.index.exists?
Product.reindex
+sleep 1
+Product.reindex # run twice for both index paths
class MiniTest::Unit::TestCase
def setup
Product.destroy_all