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

ruby-changes:18778

From: nobu <ko1@a...>
Date: Sun, 6 Feb 2011 12:13:17 +0900 (JST)
Subject: [ruby-changes:18778] Ruby:r30804 (trunk): * test/fileutils/fileasserts.rb (FileAssertions): separate module.

nobu	2011-02-06 12:13:08 +0900 (Sun, 06 Feb 2011)

  New Revision: 30804

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

  Log:
    * test/fileutils/fileasserts.rb (FileAssertions): separate module.

  Modified files:
    trunk/ChangeLog
    trunk/test/fileutils/clobber.rb
    trunk/test/fileutils/fileasserts.rb
    trunk/test/fileutils/test_fileutils.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30803)
+++ ChangeLog	(revision 30804)
@@ -1,3 +1,7 @@
+Sun Feb  6 12:12:59 2011  Nobuyoshi Nakada  <nobu@r...>
+
+	* test/fileutils/fileasserts.rb (FileAssertions): separate module.
+
 Sun Feb  6 11:29:23 2011  Tanaka Akira  <akr@f...>
 
 	* ext/dbm/dbm.c: parenthesize macro arguments.
Index: test/fileutils/test_fileutils.rb
===================================================================
--- test/fileutils/test_fileutils.rb	(revision 30803)
+++ test/fileutils/test_fileutils.rb	(revision 30804)
@@ -8,6 +8,7 @@
 
 class TestFileUtils < Test::Unit::TestCase
   TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
+  include Test::Unit::FileAssertions
 end
 
 prevdir = Dir.pwd
Index: test/fileutils/fileasserts.rb
===================================================================
--- test/fileutils/fileasserts.rb	(revision 30803)
+++ test/fileutils/fileasserts.rb	(revision 30804)
@@ -2,7 +2,7 @@
 
 module Test
   module Unit
-    module Assertions   # redefine
+    module FileAssertions
 
       def _wrap_assertion
         yield
Index: test/fileutils/clobber.rb
===================================================================
--- test/fileutils/clobber.rb	(revision 30803)
+++ test/fileutils/clobber.rb	(revision 30804)
@@ -7,6 +7,8 @@
 end
 
 module TestFileUtils::Clobber
+  include Test::Unit::FileAssertions
+
   def my_rm_rf(path)
     if File.exist?('/bin/rm')
       system %Q[/bin/rm -rf "#{path}"]

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

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