[前][次][番号順一覧][スレッド一覧]

ruby-changes:18772

From: nobu <ko1@a...>
Date: Sat, 5 Feb 2011 21:22:34 +0900 (JST)
Subject: [ruby-changes:18772] Ruby:r30798 (trunk): * lib/test/unit/assertions.rb (assert_block): move from

nobu	2011-02-05 21:22:27 +0900 (Sat, 05 Feb 2011)

  New Revision: 30798

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30798

  Log:
    * lib/test/unit/assertions.rb (assert_block): move from
      test/fileutils/fileasserts.rb.

  Modified files:
    trunk/ChangeLog
    trunk/lib/test/unit/assertions.rb
    trunk/test/fileutils/fileasserts.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30797)
+++ ChangeLog	(revision 30798)
@@ -1,5 +1,8 @@
-Sat Feb  5 20:40:34 2011  Nobuyoshi Nakada  <nobu@r...>
+Sat Feb  5 21:22:21 2011  Nobuyoshi Nakada  <nobu@r...>
 
+	* lib/test/unit/assertions.rb (assert_block): move from
+	  test/fileutils/fileasserts.rb.
+
 	* test/fileutils/fileasserts.rb (assert_block): pass arguments
 	  as-is.  [ruby-dev:43174]
 
Index: lib/test/unit/assertions.rb
===================================================================
--- lib/test/unit/assertions.rb	(revision 30797)
+++ lib/test/unit/assertions.rb	(revision 30798)
@@ -21,6 +21,10 @@
         super
       end
 
+      def assert_block(*msgs)
+        assert yield, *msgs
+      end
+
       def assert_raise(*args, &b)
         assert_raises(*args, &b)
       end
Index: test/fileutils/fileasserts.rb
===================================================================
--- test/fileutils/fileasserts.rb	(revision 30797)
+++ test/fileutils/fileasserts.rb	(revision 30798)
@@ -8,10 +8,6 @@
         yield
       end
 
-      def assert_block(*msgs)
-        assert yield, *msgs
-      end
-
       def assert_same_file(from, to, message=nil)
         _wrap_assertion {
           assert_block("file #{from} != #{to}#{message&&': '}#{message||''}") {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]