aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/dependencies_test.rb
diff options
context:
space:
mode:
authorJosef Stribny <jstribny@redhat.com>2015-04-02 16:57:49 +0200
committerJosef Stribny <jstribny@redhat.com>2015-04-02 17:09:24 +0200
commit097ac2045a308d76593a27651f17cc43e5dc102b (patch)
treefda76eef3823c19581004ac30abf005cfeb80016 /activesupport/test/dependencies_test.rb
parent71003d63b6e217625450b0942a7afb8d7d1d14d9 (diff)
downloadrails-097ac2045a308d76593a27651f17cc43e5dc102b.tar.gz
rails-097ac2045a308d76593a27651f17cc43e5dc102b.tar.bz2
rails-097ac2045a308d76593a27651f17cc43e5dc102b.zip
Do not depend on Rails git repository layout in ActiveSupport tests
Diffstat (limited to 'activesupport/test/dependencies_test.rb')
-rw-r--r--activesupport/test/dependencies_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index 702e26859a..4a1d90bfd6 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -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