summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 08:07:41 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-02 08:07:41 +0000
commitb1d2491fb42e3c5f254ac761db736d0129d0ebd5 (patch)
tree26415cc045ab2c73e79d0204c724d4c7abe9f237 /test
parent27b1ee2773a840f3b3db5a6a5b7cc2ad02d7b3a2 (diff)
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
Diffstat (limited to 'test')
-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