Skip to content

Commit e99bae0

Browse files
committed
⚠️ method redefined; discarding old root
1 parent 8f5d528 commit e99bae0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/test_helper.rb

+1-7
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,10 @@
1010
Bundler.require(:default)
1111

1212
class TestApp < Rails::Application
13-
config.root = File.dirname(__FILE__)
13+
config.root = Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp', 'rails')))
1414
config.eager_load = false
1515
end
1616

17-
module Rails
18-
def self.root
19-
@root ||= Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp', 'rails')))
20-
end
21-
end
22-
2317
TestApp.initialize!
2418

2519
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

0 commit comments

Comments
 (0)