diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-30 15:09:17 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-30 15:09:17 +0000 |
| commit | 809890c873071a70082867303a96de0c86df18c7 (patch) | |
| tree | 96b51316e248d9995ee0159b47af6fb0c216c40d /lib | |
| parent | fbebb2953ca4678a67b6528ddb0733aee5a7a90b (diff) | |
| download | ruby-809890c873071a70082867303a96de0c86df18c7.tar.gz ruby-809890c873071a70082867303a96de0c86df18c7.tar.xz ruby-809890c873071a70082867303a96de0c86df18c7.zip | |
* lib/test/unit/assertions.rb
(Test::Unit::Assertions#assert_nothing_raised): supress warning.
[ruby-core:21312]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/test/unit/assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index 135844328..5987d1adc 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -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 }) |
