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_nothing_raised): supress warning. [ruby-core:21312] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e265c07471
commit
966675c860
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Jan 31 00:07:49 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/test/unit/assertions.rb
|
||||
(Test::Unit::Assertions#assert_nothing_raised): supress warning.
|
||||
[ruby-core:21312]
|
||||
|
||||
Fri Jan 30 21:49:32 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/pathname.rb (Pathname#realdirpath): new method based on the
|
||||
|
|
|
@ -28,7 +28,7 @@ module Test
|
|||
as = e.instance_of?(MiniTest::Assertion)
|
||||
if as
|
||||
ans = /\A#{Regexp.quote(__FILE__)}:#{line}:in /o
|
||||
bt.reject! {|line| ans =~ line}
|
||||
bt.reject! {|ln| ans =~ ln}
|
||||
end
|
||||
if ((args.empty? && !as) ||
|
||||
args.any? {|a| a.instance_of?(Module) ? e.is_a?(a) : e.class == a })
|
||||
|
|
Loading…
Reference in a new issue