aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r--test/ruby/test_class.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 27558e33dd..9c016dd693 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -369,6 +369,9 @@ class TestClass < Test::Unit::TestCase
end
end;
}
+ assert_raise_with_message(TypeError, /#{n}/) {
+ m.module_eval "class #{n} < Class.new; end"
+ }
end
def test_cloned_singleton_method_added