Module: Chewy::Minitest::Helpers::ClassMethods

Defined in:
lib/chewy/minitest/helpers.rb

Instance Method Summary collapse

Instance Method Details

#index_everything!Object

Declare that all tests in this file require real indexing, always. In my completely unscientific experiments, this roughly doubled test runtime. Use with trepidation.



130
131
132
133
134
135
136
137
138
# File 'lib/chewy/minitest/helpers.rb', line 130

def index_everything!
  setup do
    Chewy.strategy :urgent
  end

  teardown do
    Chewy.strategy.pop
  end
end