Skip to content

Commit

Permalink
⚠️ method redefined; discarding old root
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Aug 18, 2024
1 parent 8f5d528 commit e99bae0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e99bae0

Please sign in to comment.