* 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

@ -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