diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-06 03:42:25 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-06 03:42:25 +0000 |
commit | b8623eab437da7c582f5687cc04424ae4d22027f (patch) | |
tree | fd165243f45365febf0e5caea2a5666d82e1ca0d | |
parent | f2f2cd5bc69847be2c7edcc5c61d5bbb380955fd (diff) | |
download | ruby-b8623eab437da7c582f5687cc04424ae4d22027f.tar.gz |
* lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised):
should take optional message argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/test/unit/assertions.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Oct 6 12:38:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): + should take optional message argument. + Mon Oct 6 12:18:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * string.c (rb_str_comparable): string comparison should be diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index 6c29b78096..ee973dc58e 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -40,7 +40,7 @@ module Test::Unit tu_deprecate :assert_not_nil, :refute_nil # 2009-06-01 tu_deprecate :assert_not_same, :refute_same # 2009-06-01 - def assert_nothing_raised _ = :ignored # 2009-06-01 + def assert_nothing_raised _ = :ignored, msg = nil # 2009-06-01 self.class.tu_deprecation_warning :assert_nothing_raised self._assertions += 1 yield |