diff --git a/test/base_helper.rb b/test/base_helper.rb index 54a980d..9edc1ff 100644 --- a/test/base_helper.rb +++ b/test/base_helper.rb @@ -28,7 +28,9 @@ module TestApp class Application < Rails::Application - config.root = File.dirname(__FILE__) + config.try :load_defaults, "#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}" + + config.root = __dir__ config.active_support.deprecation = :log config.active_support.test_order = :random config.eager_load = false