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

ruby-changes:8169

From: matz <ko1@a...>
Date: Mon, 6 Oct 2008 12:42:55 +0900 (JST)
Subject: [ruby-changes:8169] Ruby:r19697 (trunk): * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised):

matz	2008-10-06 12:42:25 +0900 (Mon, 06 Oct 2008)

  New Revision: 19697

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

  Log:
    * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): 
      should take optional message argument.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19696)
+++ ChangeLog	(revision 19697)
@@ -1,3 +1,8 @@
+Mon Oct  6 12:38:36 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): 
+	  should take optional message argument.
+
 Mon Oct  6 12:18:23 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* string.c (rb_str_comparable): string comparison should be
Index: lib/test/unit/assertions.rb
===================================================================
--- lib/test/unit/assertions.rb	(revision 19696)
+++ lib/test/unit/assertions.rb	(revision 19697)
@@ -40,7 +40,7 @@
     tu_deprecate :assert_not_nil,        :refute_nil            # 2009-06-01
     tu_deprecate :assert_not_same,       :refute_same           # 2009-06-01
 
-    def assert_nothing_raised _ = :ignored                      # 2009-06-01
+    def assert_nothing_raised _ = :ignored, msg = nil           # 2009-06-01
       self.class.tu_deprecation_warning :assert_nothing_raised
       self._assertions += 1
       yield

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

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