Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2 from cdlm/color-fix

Cosmetic color fixes to play nicely with the solarized theme
  • Loading branch information...
commit 9bbf35cb4d98c9e008eb4988d8ee716a7a631b5a 2 parents dc3eb73 + f29aac7
@quirkey authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/minitest/display.rb
View
7 lib/minitest/display.rb
@@ -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] }
Please sign in to comment.
Something went wrong with that request. Please try again.