mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_module.rb (TestModule#_wrap_assertion): add
definition. is this really needed? git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b8623eab43
commit
f4d37a3ff4
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Oct 6 12:45:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_module.rb (TestModule#_wrap_assertion): add
|
||||
definition. is this really needed?
|
||||
|
||||
Mon Oct 6 12:38:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised):
|
||||
|
|
|
@ -5,6 +5,10 @@ require_relative 'envutil'
|
|||
$m0 = Module.nesting
|
||||
|
||||
class TestModule < Test::Unit::TestCase
|
||||
def _wrap_assertion
|
||||
yield
|
||||
end
|
||||
|
||||
def assert_method_defined?(klass, mid, message="")
|
||||
message = build_message(message, "#{klass}\##{mid} expected to be defined.")
|
||||
_wrap_assertion do
|
||||
|
|
Loading…
Reference in a new issue