Skip to content

Commit b5565c0

Browse files
committed
- Remove check for .b method. (tenderlove)
[git-p4: depot-paths = "//src/minitest/dev/": change = 13574]
1 parent 4accdd5 commit b5565c0

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/minitest.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ def aggregated_results io # :nodoc:
823823
end
824824

825825
def to_s # :nodoc:
826-
aggregated_results(StringIO.new(binary_string)).string
826+
aggregated_results(StringIO.new(''.b)).string
827827
end
828828

829829
def summary # :nodoc:
@@ -836,14 +836,6 @@ def summary # :nodoc:
836836
"%d runs, %d assertions, %d failures, %d errors, %d skips%s" %
837837
[count, assertions, failures, errors, skips, extra]
838838
end
839-
840-
private
841-
842-
if '<3'.respond_to? :b
843-
def binary_string; ''.b; end
844-
else
845-
def binary_string; ''.force_encoding(Encoding::ASCII_8BIT); end
846-
end
847839
end
848840

849841
##

0 commit comments

Comments
 (0)