From b8623eab437da7c582f5687cc04424ae4d22027f Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 6 Oct 2008 03:42:25 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ lib/test/unit/assertions.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f5610bf477..7d4265a8e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 6 12:38:36 2008 Yukihiro Matsumoto + + * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): + should take optional message argument. + Mon Oct 6 12:18:23 2008 Yukihiro Matsumoto * 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