Skip to content

Commit

Permalink
Remove Test::Unit::TestCase.make_my_diffs_pretty!
Browse files Browse the repository at this point in the history
`Test::Unit::CoreAssertions#mu_pp` is defined always using
`pretty_inspect`.
  • Loading branch information
nobu committed Oct 18, 2021
1 parent d1b8544 commit 6c74976
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tool/lib/test/unit/testcase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,20 +236,6 @@ def self.reset # :nodoc:

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
Expand Down

0 comments on commit 6c74976

Please sign in to comment.