1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):

fixed filtering.  [ruby-core:29908]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-05-01 13:27:49 +00:00
parent c8316e30ae
commit 8657912211
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat May 1 22:27:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
fixed filtering. [ruby-core:29908]
Sat May 1 16:46:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): don't use

View file

@ -13,7 +13,7 @@ module Test
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