mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Do not depend on Rails git repository layout in ActiveSupport tests
This commit is contained in:
parent
71003d63b6
commit
097ac2045a
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
|
def test_ensures_the_expected_constant_is_defined
|
||||||
with_autoloading_fixtures do
|
with_autoloading_fixtures do
|
||||||
e = assert_raise(LoadError) { 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ class DependenciesTest < ActiveSupport::TestCase
|
||||||
assert_equal 1, TypO
|
assert_equal 1, TypO
|
||||||
|
|
||||||
e = assert_raise(LoadError) { 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue