- Remove check for .b method. (tenderlove)

[git-p4: depot-paths = "//src/minitest/dev/": change = 13574]
This commit is contained in:
Ryan Davis 2022-10-19 10:12:49 -08:00
parent 4accdd55c1
commit b5565c0c7a
1 changed files with 1 additions and 9 deletions

View File

@ -823,7 +823,7 @@ module Minitest
end
def to_s # :nodoc:
aggregated_results(StringIO.new(binary_string)).string
aggregated_results(StringIO.new(''.b)).string
end
def summary # :nodoc:
@ -836,14 +836,6 @@ module Minitest
"%d runs, %d assertions, %d failures, %d errors, %d skips%s" %
[count, assertions, failures, errors, skips, extra]
end
private
if '<3'.respond_to? :b
def binary_string; ''.b; end
else
def binary_string; ''.force_encoding(Encoding::ASCII_8BIT); end
end
end
##