diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-14 13:48:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-14 13:48:14 +0000 |
commit | 80020d092e6416eb19046e905ebfdbc9b89c35bc (patch) | |
tree | 011911df79acb3e382103c5fca96b45b3e0f9f2c | |
parent | 3d41f4df438e8073e29cf85543917e401a83322b (diff) | |
download | ruby-80020d092e6416eb19046e905ebfdbc9b89c35bc.tar.gz |
* lib/test/unit.rb (Test::Unit::Runner::Worker#initialize): use
positional arguments instead of keyword arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/test/unit.rb | 10 |
2 files changed, 9 insertions, 6 deletions
@@ -1,4 +1,7 @@ -Thu Apr 14 22:48:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> +Thu Apr 14 22:48:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/test/unit.rb (Test::Unit::Runner::Worker#initialize): use + positional arguments instead of keyword arguments. * lib/test/unit.rb (Test::Unit::Runner#jobs_status): io/console may not be available. use 80 as the last resort if IO#winsize and diff --git a/lib/test/unit.rb b/lib/test/unit.rb index d1f7383cb9..9e3a23ea43 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -233,13 +233,13 @@ module Test io = IO.popen([*ruby, "#{File.dirname(__FILE__)}/unit/parallel.rb", *args], "rb+") - new(io: io, pid: io.pid, status: :waiting) + new(io, io.pid, :waiting) end - def initialize(h={}) - @io = h[:io] - @pid = h[:pid] - @status = h[:status] + def initialize(io, pid, status) + @io = io + @pid = pid + @status = status @file = nil @real_file = nil @loadpath = [] |