mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove Test::Unit::TestCase.make_my_diffs_pretty!
`Test::Unit::CoreAssertions#mu_pp` is defined always using `pretty_inspect`.
This commit is contained in:
parent
d1b8544b4d
commit
6c74976aef
Notes:
git
2021-10-18 17:36:27 +09:00
1 changed files with 0 additions and 14 deletions
|
@ -236,20 +236,6 @@ module Test
|
|||
|
||||
reset
|
||||
|
||||
##
|
||||
# Make diffs for this TestCase use #pretty_inspect so that diff
|
||||
# in assert_equal can be more details. NOTE: this is much slower
|
||||
# than the regular inspect but much more usable for complex
|
||||
# objects.
|
||||
|
||||
def self.make_my_diffs_pretty!
|
||||
require 'pp'
|
||||
|
||||
define_method :mu_pp do |o|
|
||||
o.pretty_inspect
|
||||
end
|
||||
end
|
||||
|
||||
def self.inherited klass # :nodoc:
|
||||
@@test_suites[klass] = true
|
||||
super
|
||||
|
|
Loading…
Reference in a new issue