summaryrefslogtreecommitdiff
path: root/lib/test/unit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r--lib/test/unit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 90b957512e5..2d25f2f2c3f 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -655,10 +655,14 @@ module Test
alias mini_run_suite _run_suite
+ def output
+ @output || super
+ end
+
def _prepare_run(suites, type)
if @tty
@verbose ||= !options[:parallel]
- MiniTest::Unit.output = StatusLineOutput.new(self)
+ @output = StatusLineOutput.new(self)
end
if /\A\/(.*)\/\z/ =~ (filter = options[:filter])
options[:filter] = filter = Regexp.new($1)