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

ruby-changes:8018

From: ryan <ko1@a...>
Date: Thu, 25 Sep 2008 16:34:59 +0900 (JST)
Subject: [ruby-changes:8018] Ruby:r19543 (trunk): Not a typo. The name is better plural. Better English and more consistent with the other assertions.

ryan	2008-09-25 16:34:49 +0900 (Thu, 25 Sep 2008)

  New Revision: 19543

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

  Log:
    Not a typo. The name is better plural. Better English and more consistent with the other assertions.

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

Index: lib/mini/test.rb
===================================================================
--- lib/mini/test.rb	(revision 19542)
+++ lib/mini/test.rb	(revision 19543)
@@ -129,7 +129,7 @@
       assert o1.__send__(op, o2), msg
     end
 
-    def assert_raise *exp
+    def assert_raises *exp
       msg = String === exp.last ? exp.pop : nil
       should_raise = false
       begin
Index: lib/test/unit/assertions.rb
===================================================================
--- lib/test/unit/assertions.rb	(revision 19542)
+++ lib/test/unit/assertions.rb	(revision 19543)
@@ -34,7 +34,7 @@
 module Test::Unit
   module Assertions # deprecations
     tu_deprecate :assert_nothing_thrown, :assert_nothing_raised # 2009-06-01
-    tu_deprecate :assert_raises,         :assert_raise          # 2010-06-01
+    tu_deprecate :assert_raise,          :assert_raises         # 2010-06-01
     tu_deprecate :assert_not_equal,      :refute_equal          # 2009-06-01
     tu_deprecate :assert_no_match,       :refute_match          # 2009-06-01
     tu_deprecate :assert_not_nil,        :refute_nil            # 2009-06-01

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

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