lib/minitest/utils/reporter.rb in minitest-utils-0.1.4 vs lib/minitest/utils/reporter.rb in minitest-utils-0.2.0
- old
+ new
@@ -140,10 +140,10 @@
io.print result_code
end
def color(string, color = :default)
color = COLOR.fetch(color, 0)
- "\e[#{color}m#{string}"
+ "\e[#{color}m#{string}\e[0m"
end
def pluralize(word, count)
case count
when 0