1
0
Fork 0
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:
matz 2008-10-06 03:46:11 +00:00
parent b8623eab43
commit f4d37a3ff4
2 changed files with 9 additions and 0 deletions

View file

@ -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> Mon Oct 6 12:38:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised):

View file

@ -5,6 +5,10 @@ require_relative 'envutil'
$m0 = Module.nesting $m0 = Module.nesting
class TestModule < Test::Unit::TestCase class TestModule < Test::Unit::TestCase
def _wrap_assertion
yield
end
def assert_method_defined?(klass, mid, message="") def assert_method_defined?(klass, mid, message="")
message = build_message(message, "#{klass}\##{mid} expected to be defined.") message = build_message(message, "#{klass}\##{mid} expected to be defined.")
_wrap_assertion do _wrap_assertion do