aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 e56bab6d4c..0380ea3c95 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -543,8 +543,8 @@ class DependenciesTest < ActiveSupport::TestCase
require_dependency 'e'
mod = Module.new
- msg = 'E cannot be autoloaded from an anonymous class or module'
- assert_raise(NameError, msg) { mod::E }
+ e = assert_raise(NameError) { mod::E }
+ assert_equal 'E cannot be autoloaded from an anonymous class or module', e.message
end
end