summaryrefslogtreecommitdiff
path: root/test/ruby/test_class.rb
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-06 15:26:34 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-06 15:26:34 +0000
commitb09eabd430d92cdae011bb7ad08a3300049a4392 (patch)
tree40a78e2468bfb94b187249f0fd8c1225209eacca /test/ruby/test_class.rb
parent141179186bd28a712cd771fb60fa9a5d5b275e7b (diff)
* class.c (rb_class_init_copy): raise a TypeError if the argument is
BasicObject. [ruby-core:27060] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r--test/ruby/test_class.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index b444d4e8ab..3a0ced8be7 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -181,6 +181,8 @@ class TestClass < Test::Unit::TestCase
o = Object.new
c = class << o; self; end
assert_raise(TypeError) { c.dup }
+
+ assert_raise(TypeError) { BasicObject.dup }
end
def test_singleton_class