module Chewy::Minitest::Helpers::ClassMethods

Public Instance Methods

index_everything!() click to toggle source

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

# File lib/chewy/minitest/helpers.rb, line 130
def index_everything!
  setup do
    Chewy.strategy :urgent
  end

  teardown do
    Chewy.strategy.pop
  end
end