diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-27 02:27:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-27 02:27:53 +0000 |
commit | 2d8b8b4d3eee567237c4be24b615be65f9b98235 (patch) | |
tree | 9627717df569a5f5a910989778580ff9562deabc /lib/test | |
parent | a000c52b83e73d6ea40b5ab72eef9d2c88842a1a (diff) | |
download | ruby-2d8b8b4d3eee567237c4be24b615be65f9b98235.tar.gz |
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')
-rw-r--r-- | lib/test/unit.rb | 2 |
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 |