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

ruby-changes:44473

From: nobu <ko1@a...>
Date: Wed, 2 Nov 2016 10:31:05 +0900 (JST)
Subject: [ruby-changes:44473] nobu:r56546 (trunk): assertions.rb: assert_all_assertions

nobu	2016-11-02 10:31:00 +0900 (Wed, 02 Nov 2016)

  New Revision: 56546

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56546

  Log:
    assertions.rb: assert_all_assertions
    
    * test/lib/test/unit/assertions.rb (assert_all_assertions): prefix
      assert to be filtered out.

  Modified files:
    trunk/test/lib/test/unit/assertions.rb
Index: test/lib/test/unit/assertions.rb
===================================================================
--- test/lib/test/unit/assertions.rb	(revision 56545)
+++ test/lib/test/unit/assertions.rb	(revision 56546)
@@ -835,12 +835,13 @@ eom https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L835
         end
       end
 
-      def all_assertions(msg = nil)
+      def assert_all_assertions(msg = nil)
         all = AllFailures.new
         yield all
       ensure
         assert(all.pass?, message(msg) {all.message.chomp(".")})
       end
+      alias all_assertions assert_all_assertions
 
       def build_message(head, template=nil, *arguments) #:nodoc:
         template &&= template.chomp

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

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