Permalink
Browse files

Fix test for change to circular loading message

44103bc changed the circular loading message to include more details,
but the corresponding test was not updated. This commit fixes the
corresponding test to use `assert_match` so we don't need to build a
bunch of file paths for the tests.
  • Loading branch information...
eileencodes committed Dec 14, 2017
1 parent b1d7cb4 commit 97bc205ce148061a2a2877f3f56eac53c6ab927f
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/dependencies_test.rb
@@ -154,7 +154,7 @@ def test_mutual_dependencies_dont_infinite_loop
def test_circular_autoloading_detection
with_autoloading_fixtures do
e = assert_raise(RuntimeError) { Circular1 }
assert_equal "Circular dependency detected while autoloading constant Circular1", e.message
assert_match /Circular dependency detected while autoloading constant Circular1. Loading list:/, e.message
end
end

0 comments on commit 97bc205

Please sign in to comment.