summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-30 15:09:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-30 15:09:17 +0000
commit966675c860b505968972be02a6aaf99f4d620e4c (patch)
tree96b51316e248d9995ee0159b47af6fb0c216c40d
parente265c074711ad491a91866c9976abf773c8d6e6c (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--lib/test/unit/assertions.rb2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index dbc6813621..b4160e77c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index 1358443285..5987d1adc7 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 })