diff --git a/ChangeLog b/ChangeLog index 8ac5c8d0af..488d644e50 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -Thu Apr 14 22:48:03 2011 Nobuyoshi Nakada +Thu Apr 14 22:48:08 2011 Nobuyoshi Nakada + + * 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 = []