mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
f2f2cd5bc6
commit
b8623eab43
2 changed files with 6 additions and 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue