[前][次][番号順一覧][スレッド一覧]

ruby-changes:8170

From: matz <ko1@a...>
Date: Mon, 6 Oct 2008 12:46:26 +0900 (JST)
Subject: [ruby-changes:8170] Ruby:r19698 (trunk): * test/ruby/test_module.rb (TestModule#_wrap_assertion): add

matz	2008-10-06 12:46:11 +0900 (Mon, 06 Oct 2008)

  New Revision: 19698

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19698

  Log:
    * test/ruby/test_module.rb (TestModule#_wrap_assertion): add
      definition.  is this really needed?

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_module.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19697)
+++ ChangeLog	(revision 19698)
@@ -1,3 +1,8 @@
+Mon Oct  6 12:45:20 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* test/ruby/test_module.rb (TestModule#_wrap_assertion): add
+	  definition.  is this really needed?
+
 Mon Oct  6 12:38:36 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised): 
Index: test/ruby/test_module.rb
===================================================================
--- test/ruby/test_module.rb	(revision 19697)
+++ test/ruby/test_module.rb	(revision 19698)
@@ -5,6 +5,10 @@
 $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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]