From f4d37a3ff4c3fe4dfd82710e21d0e896e36650c0 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 6 Oct 2008 03:46:11 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ test/ruby/test_module.rb | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7d4265a8e5..9054db1642 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Oct 6 12:45:20 2008 Yukihiro Matsumoto + + * test/ruby/test_module.rb (TestModule#_wrap_assertion): add + definition. is this really needed? + Mon Oct 6 12:38:36 2008 Yukihiro Matsumoto * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): 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