From cb609d75fe06b51f736f5f793f7daf7a45e99192 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Wed, 23 Dec 2015 23:26:03 +0100 Subject: [PATCH] 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. --- railties/lib/rails/test_unit/reporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def record(result) 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 -- GitLab