mirror of
https://github.com/ruby/ruby.git
synced 2025-09-24 04:54:01 +02: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
|
@ -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…
Add table
Add a link
Reference in a new issue