test/test_helper.rb in thermos-1.0.1 vs test/test_helper.rb in thermos-1.0.2

- old
+ new

@@ -13,17 +13,22 @@ require "minitest/mock" # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } -# Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path - ActiveSupport::TestCase.fixtures :all +elsif ActiveSupport::TestCase.respond_to?(:fixture_paths=) + ActiveSupport::TestCase.fixture_paths = [ + File.expand_path("../fixtures", __FILE__), + ] + ActionDispatch::IntegrationTest.fixture_paths = + ActiveSupport::TestCase.fixture_paths end +ActiveSupport::TestCase.fixtures :all ActiveJob::Base.queue_adapter = :inline ActiveSupport.test_order = :random def clear_cache