diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_module.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index decb217289..5826ed0269 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -1270,4 +1270,9 @@ class TestModule < Test::Unit::TestCase expected = [:M2,[:M3,[:C1,[:M4,[:M1,[:C0,[:M0],:C0],:M1],:M4],:C1],:M3],:M2] assert_equal(expected, obj.m1) end + + def test_prepend_instance_methods + bug6655 = '[ruby-core:45915]' + assert_equal(Object.instance_methods, Class.new {prepend Module.new}.instance_methods, bug6655) + end end |