aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-06 03:46:11 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-06 03:46:11 +0000
commitf4d37a3ff4c3fe4dfd82710e21d0e896e36650c0 (patch)
treeea0ca81ff6cab7981454dc5421c5fb8c1ddac0cb /test
parentb8623eab437da7c582f5687cc04424ae4d22027f (diff)
downloadruby-f4d37a3ff4c3fe4dfd82710e21d0e896e36650c0.tar.gz
* 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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_module.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index edbbf250dd..17fbf56337 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -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