summaryrefslogtreecommitdiff
path: root/test/ruby/test_class.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-17 01:40:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-17 01:40:22 +0000
commit137d82569f961a908daa0331a0664a0eca3e8f93 (patch)
treedfa0b48510dcd0e65b49c104bbe145661e15d840 /test/ruby/test_class.rb
parent59a88b94f031ff9da31fa0206ddcf7490cf49836 (diff)
* class.c (rb_define_{class,module}_id_under): register to be
marked, which probably are defined and used internally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_class.rb')
-rw-r--r--test/ruby/test_class.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb
index c81f0752d4..3f18294e0f 100644
--- a/test/ruby/test_class.rb
+++ b/test/ruby/test_class.rb
@@ -236,4 +236,8 @@ class TestClass < Test::Unit::TestCase
copy.send(:include, mod)
assert_equal("mod#foo", copy.new.foo)
end
+
+ def test_nested_class_removal
+ assert_normal_exit('File.__send__(:remove_const, :Stat); at_exit{File.stat(".")}; GC.start')
+ end
end