summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fileutils/clobber.rb2
-rw-r--r--test/fileutils/fileasserts.rb2
-rw-r--r--test/fileutils/test_fileutils.rb1
3 files changed, 4 insertions, 1 deletions
diff --git a/test/fileutils/clobber.rb b/test/fileutils/clobber.rb
index b3359e9..9f94665 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 47a769c..e8c5fa4 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 494204c..3ec8dce 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