* 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
This commit is contained in:
nobu 2012-05-27 02:27:53 +00:00
Родитель a000c52b83
Коммит 2d8b8b4d3e
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Sun May 27 11:27:50 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Runner#_prepare_run): fix operator
precedence, so that platform and TERM should be counted.
Sun May 27 10:02:33 2012 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strftime.c: allows %Ok and %Ol.

Просмотреть файл

@ -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