ruby-changes:15659
From: nobu <ko1@a...>
Date: Sat, 1 May 2010 22:28:05 +0900 (JST)
Subject: [ruby-changes:15659] Ruby:r27576 (trunk): * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
nobu 2010-05-01 22:27:49 +0900 (Sat, 01 May 2010) New Revision: 27576 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27576 Log: * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): fixed filtering. [ruby-core:29908] Modified files: trunk/ChangeLog trunk/lib/test/unit/assertions.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 27575) +++ ChangeLog (revision 27576) @@ -1,3 +1,8 @@ +Sat May 1 22:27:45 2010 Nobuyoshi Nakada <nobu@r...> + + * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): + fixed filtering. [ruby-core:29908] + Sat May 1 16:46:44 2010 Nobuyoshi Nakada <nobu@r...> * ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): don't use Index: lib/test/unit/assertions.rb =================================================================== --- lib/test/unit/assertions.rb (revision 27575) +++ lib/test/unit/assertions.rb (revision 27576) @@ -13,7 +13,7 @@ def assert(test, msg = (nomsg = true; nil)) unless nomsg or msg.instance_of?(String) or msg.instance_of?(Proc) or (bt = caller).shift.rindex(MiniTest::MINI_DIR, 0) - bt = MiniTest.delete_if {|s| rindex(MiniTest::MINI_DIR, 0)} + bt.delete_if {|s| s.rindex(MiniTest::MINI_DIR, 0)} raise ArgumentError, "assertion message must be String or Proc, but #{msg.class} was given.", bt end super -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/