Permalink
Browse files

Merge pull request #2 from cdlm/color-fix

Cosmetic color fixes to play nicely with the solarized theme
  • Loading branch information...
2 parents dc3eb73 + f29aac7 commit 9bbf35cb4d98c9e008eb4988d8ee716a7a631b5a @quirkey committed Jan 23, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/minitest/display.rb
View
@@ -214,8 +214,11 @@ def _run_suite(suite, type)
def status(io = self.output)
format = "%d tests, %d assertions, %d failures, %d errors, %d skips"
- final_status = failures + errors > 0 ? :failure : :success
- io.puts display.color(format % [test_count, assertion_count, failures, errors, skips], [:bold, final_status])
+ final_status = if errors > 0 then :error
+ elsif failures > 0 then :failure
+ else :success
+ end
+ io.puts display.color(format % [test_count, assertion_count, failures, errors, skips], final_status)
if display.options[:output_slow]
@test_times.sort! {|a, b| b[1] <=> a[1] }

0 comments on commit 9bbf35c

Please sign in to comment.