diff options
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r-- | test/ruby/test_class.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index f84c2d7a78..ce9ffab3c5 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -371,6 +371,9 @@ class TestClass < Test::Unit::TestCase end; } assert_raise_with_message(TypeError, /#{n}/) { + Class.new(c) + } + assert_raise_with_message(TypeError, /#{n}/) { m.module_eval "class #{n} < Class.new; end" } end |