diff --git a/test/ruby/test_super.rb b/test/ruby/test_super.rb index 7208b36..925ce90 100644 --- a/test/ruby/test_super.rb +++ b/test/ruby/test_super.rb @@ -334,4 +334,15 @@ class TestSuper < Test::Unit::TestCase } assert_equal 'hi', y.hello end + + def test_super_in_thread + hoge = Class.new { + def bar; 'hoge'; end + } + foo = Class.new(hoge) { + def bar; Thread.new { super }.join.value; end + } + + assert_equal 'hoge', foo.new.bar + end end