1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2010-10-17 01:40:22 +00:00
parent 59a88b94f0
commit 137d82569f
4 changed files with 13 additions and 2 deletions

View file

@ -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