aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/testing/constant_lookup_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/testing/constant_lookup_test.rb')
-rw-r--r--activesupport/test/testing/constant_lookup_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/testing/constant_lookup_test.rb b/activesupport/test/testing/constant_lookup_test.rb
index 71a9561189..0f16419c8b 100644
--- a/activesupport/test/testing/constant_lookup_test.rb
+++ b/activesupport/test/testing/constant_lookup_test.rb
@@ -65,4 +65,12 @@ class ConstantLookupTest < ActiveSupport::TestCase
}
}
end
+
+ def test_does_not_swallow_exception_on_no_name_error_within_constant
+ assert_raises(NameError) do
+ with_autoloading_fixtures do
+ self.class.determine_constant_from_test_name('RaisesNameError')
+ end
+ end
+ end
end