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

ruby-changes:42068

From: nobu <ko1@a...>
Date: Thu, 17 Mar 2016 14:23:01 +0900 (JST)
Subject: [ruby-changes:42068] nobu:r54142 (trunk): assertions.rb: fix result of assert_nothing_raised

nobu	2016-03-17 14:22:57 +0900 (Thu, 17 Mar 2016)

  New Revision: 54142

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

  Log:
    assertions.rb: fix result of assert_nothing_raised
    
    * test/lib/test/unit/assertions.rb (assert_nothing_raised): do not
      discard the result of the given block.

  Modified files:
    trunk/test/lib/test/unit/assertions.rb
Index: test/lib/test/unit/assertions.rb
===================================================================
--- test/lib/test/unit/assertions.rb	(revision 54141)
+++ test/lib/test/unit/assertions.rb	(revision 54142)
@@ -186,7 +186,6 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L186
             raise
           end
         end
-        nil
       end
 
       # :call-seq:

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

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