diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-23 23:26:03 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-23 23:26:03 +0100 |
commit | cb609d75fe06b51f736f5f793f7daf7a45e99192 (patch) | |
tree | 8ee2fa52fd71829672d3af063c268dad4226398e /railties/lib/rails | |
parent | 33804c7d0ff77e0135bdd2802563970de492ea5a (diff) | |
download | rails-cb609d75fe06b51f736f5f793f7daf7a45e99192.tar.gz rails-cb609d75fe06b51f736f5f793f7daf7a45e99192.tar.bz2 rails-cb609d75fe06b51f736f5f793f7daf7a45e99192.zip |
Color failure line by result code.
The static red color wouldn't paint skips in their designated yellow.
Use the color name we got from the result label earlier, which marks
skips as yellow.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/test_unit/reporter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/test_unit/reporter.rb b/railties/lib/rails/test_unit/reporter.rb index ba80dad2e3..3f38c13132 100644 --- a/railties/lib/rails/test_unit/reporter.rb +++ b/railties/lib/rails/test_unit/reporter.rb @@ -33,7 +33,7 @@ module Rails if output_inline? && result.failure && (!result.skipped? || options[:verbose]) io.puts io.puts - io.puts format_failures(result).map { |line| color(line, :red) } + io.puts format_failures(result).map { |line| color(line, color) } io.puts io.puts format_rerun_snippet(result) io.puts |