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, 1 insertions, 2 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index 8fe1272314..a1f087ad63 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -170,8 +170,7 @@ class TestClass < Test::Unit::TestCase
o = Object.new
c = class << o; self; end
assert_raise(TypeError) { Class.new(c) }
-
- assert_nothing_raised { Class.new(Class) } # is it OK?
+ assert_raise(TypeError) { Class.new(Class) }
assert_raise(TypeError) { eval("class Foo < Class; end") }
end