From e99bae0b039512a4c63c50ec948a13d1b8b1e880 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sun, 18 Aug 2024 08:21:42 +0900 Subject: [PATCH] :warning: method redefined; discarding old root --- test/test_helper.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 3118e9a..624f1fb 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -10,16 +10,10 @@ Bundler.require(:default) class TestApp < Rails::Application - config.root = File.dirname(__FILE__) + config.root = Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp', 'rails'))) config.eager_load = false end -module Rails - def self.root - @root ||= Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp', 'rails'))) - end -end - TestApp.initialize! Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}