bumping rubocop

This commit is contained in:
Loic Nageleisen 2016-02-14 16:44:33 +01:00
parent eaa832524e
commit 1fe647876a
6 changed files with 48 additions and 25 deletions

View file

@ -8,9 +8,9 @@ require 'channel'
class TestChannel < Test::Unit::TestCase
module Util
def meanwhile(*procs, &blk)
def meanwhile(*procs)
threads = procs.map { |p| Thread.new(&p) }
blk.call
yield
threads.each(&:join)
end
end

View file

@ -7,9 +7,9 @@ require 'channel/waitgroup'
class TestWaitGroup < Test::Unit::TestCase
module Util
def meanwhile(*procs, &blk)
def meanwhile(*procs)
threads = procs.map { |p| Thread.new(&p) }
blk.call
yield
threads.each(&:join)
end
end