test/test_helper.rb in searchkick-0.2.2 vs test/test_helper.rb in searchkick-0.2.3

- old
+ new

@@ -2,10 +2,12 @@ Bundler.require(:default) require "minitest/autorun" require "minitest/pride" require "active_record" +ENV["RACK_ENV"] = "test" + # for debugging # ActiveRecord::Base.logger = Logger.new(STDOUT) # rails does this in activerecord/lib/active_record/railtie.rb ActiveRecord::Base.default_timezone = :utc @@ -36,11 +38,12 @@ class Product < ActiveRecord::Base belongs_to :store searchkick \ settings: { - number_of_shards: 1 + number_of_shards: 1, + number_of_replicas: 0 }, synonyms: [ ["clorox", "bleach"], ["scallion", "greenonion"], ["saranwrap", "plasticwrap"], @@ -63,10 +66,9 @@ 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