diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_module.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 1aa7f8c691..b6e827a944 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -498,6 +498,8 @@ class TestModule < Test::Unit::TestCase name = "gadzooks" assert !Symbol.all_symbols.any? {|sym| sym.to_s == name} assert_raise(NameError) { c1.const_defined?(name) } + bug5084 = '[ruby-dev:44200]' + assert_raise(TypeError, bug5084) { c1.const_defined?(1) } end def test_const_get_no_inherited |