* 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:
parent
c8316e30ae
commit
8657912211
@ -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>
|
Sat May 1 16:46:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): don't use
|
* ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): don't use
|
||||||
|
@ -13,7 +13,7 @@ module Test
|
|||||||
def assert(test, msg = (nomsg = true; nil))
|
def assert(test, msg = (nomsg = true; nil))
|
||||||
unless nomsg or msg.instance_of?(String) or msg.instance_of?(Proc) or
|
unless nomsg or msg.instance_of?(String) or msg.instance_of?(Proc) or
|
||||||
(bt = caller).shift.rindex(MiniTest::MINI_DIR, 0)
|
(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
|
raise ArgumentError, "assertion message must be String or Proc, but #{msg.class} was given.", bt
|
||||||
end
|
end
|
||||||
super
|
super
|
||||||
|
Loading…
x
Reference in New Issue
Block a user