mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #19625 from strzibny/fix-test-rails-git-layout
Do not depend on Rails git repository layout in ActiveSupport tests
This commit is contained in:
commit
ca14f11b07
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ class DependenciesTest < ActiveSupport::TestCase
|
|||
def test_ensures_the_expected_constant_is_defined
|
||||
with_autoloading_fixtures do
|
||||
e = assert_raise(LoadError) { Typo }
|
||||
assert_match %r{Unable to autoload constant Typo, expected .*activesupport/test/autoloading_fixtures/typo.rb to define it}, e.message
|
||||
assert_match %r{Unable to autoload constant Typo, expected .*/test/autoloading_fixtures/typo.rb to define it}, e.message
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -178,7 +178,7 @@ class DependenciesTest < ActiveSupport::TestCase
|
|||
assert_equal 1, TypO
|
||||
|
||||
e = assert_raise(LoadError) { Typo }
|
||||
assert_match %r{Unable to autoload constant Typo, expected .*activesupport/test/autoloading_fixtures/typo.rb to define it}, e.message
|
||||
assert_match %r{Unable to autoload constant Typo, expected .*/test/autoloading_fixtures/typo.rb to define it}, e.message
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue