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):
filter out traces in minitest directory. [ruby-core:29908] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a8209ffcc7
commit
9d094c7a25
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat May 1 09:43:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
|
||||
filter out traces in minitest directory. [ruby-core:29908]
|
||||
|
||||
Sat May 1 06:42:57 2010 wanabe <s.wanabe@gmail.com>
|
||||
|
||||
* win32/win32.c: add declaration of wstati64 for gcc.
|
||||
|
|
|
@ -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.filter_backtrace(bt)
|
||||
bt = MiniTest.delete_if {|s| rindex(MiniTest::MINI_DIR, 0)}
|
||||
raise ArgumentError, "assertion message must be String or Proc, but #{msg.class} was given.", bt
|
||||
end
|
||||
super
|
||||
|
|
Loading…
Reference in a new issue