diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-23 23:16:54 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-12-23 23:16:54 +0100 |
commit | b99e7297e7eb73fa119d7b030c8fd672314c7698 (patch) | |
tree | 1aa9e28c759d9392523d9cf103145e92277ff173 /railties/lib/rails/test_unit | |
parent | 552e4e6b9e3d6ae7a911aa496422c6c598813d5d (diff) | |
download | rails-b99e7297e7eb73fa119d7b030c8fd672314c7698.tar.gz rails-b99e7297e7eb73fa119d7b030c8fd672314c7698.tar.bz2 rails-b99e7297e7eb73fa119d7b030c8fd672314c7698.zip |
[ci skip] Clarify why we're clearing reporters.
Minitest by default includes a summary reporter and a progress reporter.
To print colored output, we have to replace the progress reporter.
Diffstat (limited to 'railties/lib/rails/test_unit')
-rw-r--r-- | railties/lib/rails/test_unit/minitest_plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/test_unit/minitest_plugin.rb b/railties/lib/rails/test_unit/minitest_plugin.rb index c1ea307f93..586e7aa214 100644 --- a/railties/lib/rails/test_unit/minitest_plugin.rb +++ b/railties/lib/rails/test_unit/minitest_plugin.rb @@ -86,7 +86,7 @@ module Minitest # Disable the extra failure output after a run, unless output is deferred. self.hide_aggregated_results = options[:output_inline] - self.reporter.reporters.clear + self.reporter.reporters.clear # Replace progress reporter for colors. self.reporter << SummaryReporter.new(options[:io], options) self.reporter << ::Rails::TestUnitReporter.new(options[:io], options) end |