diff options
author | nagachika <nagachika@ruby-lang.org> | 2020-09-05 19:18:07 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2020-09-05 19:18:07 +0900 |
commit | 2c9dd060ab487a96e391793bd782cef6fd471b83 (patch) | |
tree | 478740c545cc1a1bc6ff02600e1b18d79016993f /test/ruby/test_method.rb | |
parent | e9e4f8430a62f56a4e62dd728f4498ee4c300c12 (diff) |
Revert "Don't display singleton class in Method#inspect unless method defined there"
[Backport #16771]
This reverts commit 0d24fb774d84d4a99454ce10fd343da00049a588.
Diffstat (limited to 'test/ruby/test_method.rb')
-rw-r--r-- | test/ruby/test_method.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index 6ad9620a00..bb506f1258 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -459,14 +459,6 @@ class TestMethod < Test::Unit::TestCase c3.class_eval { alias bar foo } m3 = c3.new.method(:bar) assert_equal("#<Method: #{c3.inspect}(#{c.inspect})#bar(foo)() #{__FILE__}:#{line_no}>", m3.inspect, bug7806) - - bug15608 = '[ruby-core:91570] [Bug #15608]' - c4 = Class.new(c) - c4.class_eval { alias bar foo } - o = c4.new - o.singleton_class - m4 = o.method(:bar) - assert_equal("#<Method: #{c4.inspect}(#{c.inspect})#bar(foo)() #{__FILE__}:#{line_no}>", m4.inspect, bug15608) end def test_callee_top_level |