[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:
parent
ade22339e3
commit
0c13596686
@ -3,14 +3,6 @@ require 'test/unit'
|
|||||||
require 'delegate'
|
require 'delegate'
|
||||||
|
|
||||||
class TestDelegateClass < Test::Unit::TestCase
|
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
|
module M
|
||||||
attr_reader :m
|
attr_reader :m
|
||||||
end
|
end
|
||||||
@ -215,7 +207,6 @@ class TestDelegateClass < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_eql?
|
def test_eql?
|
||||||
extend PP
|
|
||||||
s0 = SimpleDelegator.new("foo")
|
s0 = SimpleDelegator.new("foo")
|
||||||
s1 = SimpleDelegator.new("bar")
|
s1 = SimpleDelegator.new("bar")
|
||||||
s2 = SimpleDelegator.new("foo")
|
s2 = SimpleDelegator.new("foo")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user