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

ruby-changes:34492

From: naruse <ko1@a...>
Date: Fri, 27 Jun 2014 15:28:23 +0900 (JST)
Subject: [ruby-changes:34492] naruse:r46573 (trunk): Revert r46568 "assertions.rb: refine message"

naruse	2014-06-27 15:28:18 +0900 (Fri, 27 Jun 2014)

  New Revision: 46573

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

  Log:
    Revert r46568 "assertions.rb: refine message"
    
    Don't inspect exceptions without backtrace omission for SystemStackError.

  Modified files:
    trunk/test/lib/test/unit/assertions.rb
Index: test/lib/test/unit/assertions.rb
===================================================================
--- test/lib/test/unit/assertions.rb	(revision 46572)
+++ test/lib/test/unit/assertions.rb	(revision 46573)
@@ -126,7 +126,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit/assertions.rb#L126
           raise TypeError, "Expected #{expected.inspect} to be a kind of String or Regexp, not #{expected.class}"
         end
 
-        ex = assert_raise(exception, msg || proc {"Exception(#{exception}) with message matches to #{expected.inspect}"}) {yield}
+        ex = assert_raise(exception, *msg) {yield}
         msg = message(msg, "") {"Expected Exception(#{exception}) was raised, but the message doesn't match"}
 
         if assert == :assert_equal

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

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