summaryrefslogtreecommitdiff
path: root/lib/test/unit.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-27 02:27:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-27 02:27:53 +0000
commit2d8b8b4d3eee567237c4be24b615be65f9b98235 (patch)
tree9627717df569a5f5a910989778580ff9562deabc /lib/test/unit.rb
parenta000c52b83e73d6ea40b5ab72eef9d2c88842a1a (diff)
fix operator precedence
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): fix operator precedence, so that platform and TERM should be counted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit.rb')
-rw-r--r--lib/test/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index b48f49815b..3048adefac 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -671,7 +671,7 @@ module Test
when :always
color = true
when :auto, nil
- color = @options[:job_status] == :replace and /mswin|mingw/ !~ RUBY_PLATFORM and /dumb/ !~ ENV["TERM"]
+ color = @options[:job_status] == :replace && /mswin|mingw/ !~ RUBY_PLATFORM && /dumb/ !~ ENV["TERM"]
else
color = false
end