Fix comma placement

This commit is contained in:
Michael Miller 2021-07-06 23:32:51 -06:00
parent 7081c168a5
commit aee5897922
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436

View file

@ -32,13 +32,13 @@ module Spectator::Formatting::Components
# Writes the counts to the output. # Writes the counts to the output.
def to_s(io) def to_s(io)
io << @examples << " examples, " << @failures << " failures, " io << @examples << " examples, " << @failures << " failures"
if @errors > 1 if @errors > 1
io << '(' << @errors << " errors), " io << " (" << @errors << " errors)"
end end
io << @pending << " pending" io << ", " << @pending << " pending"
end end
end end
end end