diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_module.rb | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -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> * 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 |