ruby-changes:18771
From: nobu <ko1@a...>
Date: Sat, 5 Feb 2011 20:40:50 +0900 (JST)
Subject: [ruby-changes:18771] Ruby:r30797 (trunk): * test/fileutils/fileasserts.rb (assert_block): pass arguments
nobu 2011-02-05 20:40:43 +0900 (Sat, 05 Feb 2011) New Revision: 30797 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30797 Log: * test/fileutils/fileasserts.rb (assert_block): pass arguments as-is. [ruby-dev:43174] Modified files: trunk/ChangeLog trunk/test/fileutils/fileasserts.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30796) +++ ChangeLog (revision 30797) @@ -1,3 +1,8 @@ +Sat Feb 5 20:40:34 2011 Nobuyoshi Nakada <nobu@r...> + + * test/fileutils/fileasserts.rb (assert_block): pass arguments + as-is. [ruby-dev:43174] + Sat Feb 5 16:47:54 2011 KOSAKI Motohiro <kosaki.motohiro@g...> * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): Index: test/fileutils/fileasserts.rb =================================================================== --- test/fileutils/fileasserts.rb (revision 30796) +++ test/fileutils/fileasserts.rb (revision 30797) @@ -8,8 +8,8 @@ yield end - def assert_block msg = nil - assert yield, msg + def assert_block(*msgs) + assert yield, *msgs end def assert_same_file(from, to, message=nil) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/