diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_class.rb | 4 |
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 |