aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2020-09-05 19:18:07 +0900
committernagachika <nagachika@ruby-lang.org>2020-09-05 19:18:07 +0900
commit2c9dd060ab487a96e391793bd782cef6fd471b83 (patch)
tree478740c545cc1a1bc6ff02600e1b18d79016993f /test
parente9e4f8430a62f56a4e62dd728f4498ee4c300c12 (diff)
downloadruby-2c9dd060ab487a96e391793bd782cef6fd471b83.tar.gz
Revert "Don't display singleton class in Method#inspect unless method defined there"
[Backport #16771] This reverts commit 0d24fb774d84d4a99454ce10fd343da00049a588.
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb8
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