lib/turn/reporters/progress_reporter.rb in turn-0.6.0 vs lib/turn/reporters/progress_reporter.rb in turn-0.6.1
- old
+ new
@@ -51,11 +51,11 @@
files = nil
suite.each do |testrun|
if testrun.files != [testrun.name] && testrun.files != files
label = testrun.files.join(' ')
- label = ::ANSICode.magenta(label) if COLORIZE
+ label = ::ANSI::Code.magenta(label) if COLORIZE
io.puts(label + "\n")
files = testrun.files
end
io.puts paint_line(testrun, width)
end
@@ -75,10 +75,10 @@
#if tally[2] != 0 or tally[3] != 0
unless fails.empty? # or verbose?
io.puts "\n\n-- Failures and Errors --\n\n"
fails.uniq.each do |testrun|
message = testrun.message.tabto(0).strip
- message = ::ANSICode.red(message) if COLORIZE
+ message = ::ANSI::Code.red(message) if COLORIZE
io.puts(message+"\n\n")
end
io.puts
end
#end