mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Prevent a redefinition warning when the real Rails.root appears
This commit is contained in:
parent
4cfcf1ee54
commit
85efa3a2cf
1 changed files with 3 additions and 2 deletions
|
@ -7,11 +7,12 @@ require "rails/test_unit/minitest_plugin"
|
|||
require "rails/test_unit/line_filtering"
|
||||
require "active_support/test_case"
|
||||
|
||||
module Rails
|
||||
class << Rails
|
||||
# Necessary to get rerun-snippts working.
|
||||
def self.root
|
||||
def root
|
||||
@root ||= Pathname.new(COMPONENT_ROOT)
|
||||
end
|
||||
alias __root root
|
||||
end
|
||||
|
||||
ActiveSupport::TestCase.extend Rails::LineFiltering
|
||||
|
|
Loading…
Reference in a new issue