From 58195557b203972799cf84c3b224bf144bf5756f Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 6 Feb 2011 03:13:08 +0000 Subject: * test/fileutils/fileasserts.rb (FileAssertions): separate module. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/fileutils/clobber.rb | 2 ++ test/fileutils/fileasserts.rb | 2 +- test/fileutils/test_fileutils.rb | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f657c2b8da..baa15dad0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Feb 6 12:12:59 2011 Nobuyoshi Nakada + + * test/fileutils/fileasserts.rb (FileAssertions): separate module. + Sun Feb 6 11:29:23 2011 Tanaka Akira * ext/dbm/dbm.c: parenthesize macro arguments. diff --git a/test/fileutils/clobber.rb b/test/fileutils/clobber.rb index b3359e91a4..9f946651bf 100644 --- a/test/fileutils/clobber.rb +++ b/test/fileutils/clobber.rb @@ -7,6 +7,8 @@ class TestFileUtils < Test::Unit::TestCase end module TestFileUtils::Clobber + include Test::Unit::FileAssertions + def my_rm_rf(path) if File.exist?('/bin/rm') system %Q[/bin/rm -rf "#{path}"] diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb index 47a769c5dc..e8c5fa4369 100644 --- a/test/fileutils/fileasserts.rb +++ b/test/fileutils/fileasserts.rb @@ -2,7 +2,7 @@ module Test module Unit - module Assertions # redefine + module FileAssertions def _wrap_assertion yield diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 494204ced5..3ec8dce2d5 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -8,6 +8,7 @@ require 'test/unit' class TestFileUtils < Test::Unit::TestCase TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}" + include Test::Unit::FileAssertions end prevdir = Dir.pwd -- cgit v1.2.3