ruby-changes:18758
From: nobu <ko1@a...>
Date: Sat, 5 Feb 2011 03:34:19 +0900 (JST)
Subject: [ruby-changes:18758] Ruby:r30785 (trunk): * test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):
nobu 2011-02-05 03:34:12 +0900 (Sat, 05 Feb 2011) New Revision: 30785 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30785 Log: * test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block): show the given message. Modified files: trunk/ChangeLog trunk/test/fileutils/fileasserts.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30784) +++ ChangeLog (revision 30785) @@ -1,3 +1,8 @@ +Sat Feb 5 03:34:02 2011 Nobuyoshi Nakada <nobu@r...> + + * test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block): + show the given message. + Sat Feb 5 02:09:39 2011 Nobuyoshi Nakada <nobu@r...> * parse.y (lex_getline, parser_set_encode): set encoding of lines Index: test/fileutils/fileasserts.rb =================================================================== --- test/fileutils/fileasserts.rb (revision 30784) +++ test/fileutils/fileasserts.rb (revision 30785) @@ -8,6 +8,10 @@ yield end + def assert_block msg = nil + assert yield, msg + end + def assert_same_file(from, to) _wrap_assertion { assert_block("file #{from} != #{to}") { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/