summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-19 01:17:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-19 01:17:47 +0000
commitd205e680d30fb2b5e8b333b332c2a14ed61efa4b (patch)
tree839f90c26cfe554c1730de36dfb2435a6600b39b /test/lib
parent94d36ce335fb7044d71c11737f570f0b223427ce (diff)
test/unit.rb: color on tty
* test/lib/test/unit.rb (Test::Unit::StatusLine#_prepare_run): colorize by default on tty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index 9c1100b..f9c106f 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -565,7 +565,7 @@ module Test
when :always
color = true
when :auto, nil
- color = @options[:job_status] == :replace && /dumb/ !~ ENV["TERM"]
+ color = (@tty || @options[:job_status] == :replace) && /dumb/ !~ ENV["TERM"]
else
color = false
end