From b1d2491fb42e3c5f254ac761db736d0129d0ebd5 Mon Sep 17 00:00:00 2001 From: yugui Date: Thu, 2 Dec 2010 08:07:41 +0000 Subject: merges r29518 from trunk into ruby_1_9_2. -- * 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/branches/ruby_1_9_2@30049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_class.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/ruby') 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 -- cgit v1.2.3