[ruby/delegate] test: remove needless mu_pp

It's for minitest. We don't need it with test-unit.

https://github.com/ruby/delegate/commit/447cd43973
This commit is contained in:
Sutou Kouhei 2024-04-30 22:31:07 +09:00 committed by git
parent ade22339e3
commit 0c13596686

View File

@ -3,14 +3,6 @@ require 'test/unit'
require 'delegate'
class TestDelegateClass < Test::Unit::TestCase
module PP
def mu_pp(obj)
str = super
str = "#<#{obj.class}: #{str}>" if Delegator === obj
str
end
end
module M
attr_reader :m
end
@ -215,7 +207,6 @@ class TestDelegateClass < Test::Unit::TestCase
end
def test_eql?
extend PP
s0 = SimpleDelegator.new("foo")
s1 = SimpleDelegator.new("bar")
s2 = SimpleDelegator.new("foo")