summaryrefslogtreecommitdiff
path: root/test/fileutils/test_nowrite.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-27 06:48:08 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-27 06:48:08 +0000
commit5b0f4afc7190d5c27fed0f09dc12c86c094ea360 (patch)
tree9b1abc063115b4cc3cc6ffef688ab8ee5b6fa1b6 /test/fileutils/test_nowrite.rb
parent004db1285a8883a17598cb4cce5489aa8f92863e (diff)
* test/fileutils/fileasserts.rb: sync with HEAD.
* test/fileutils/test_fileutils.rb: ditto. * test/fileutils/test_nowrite.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils/test_nowrite.rb')
-rw-r--r--test/fileutils/test_nowrite.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/fileutils/test_nowrite.rb b/test/fileutils/test_nowrite.rb
index 18c00b8e08..2189f5f8da 100644
--- a/test/fileutils/test_nowrite.rb
+++ b/test/fileutils/test_nowrite.rb
@@ -1,20 +1,15 @@
-#
-# test/fileutils/test_nowrite.rb
-#
-
-$:.unshift File.dirname(__FILE__)
+# $Id$
require 'fileutils'
require 'fileasserts'
require 'tmpdir'
require 'test/unit'
-
class TestNoWrite < Test::Unit::TestCase
include FileUtils::NoWrite
- def my_rm_rf( path )
+ def my_rm_rf(path)
if File.exist?('/bin/rm')
system %Q[/bin/rm -rf "#{path}"]
else
@@ -52,7 +47,7 @@ class TestNoWrite < Test::Unit::TestCase
check 'tmp/mv'
end
- def check( dest )
+ def check(dest)
assert_file_not_exist dest
assert_file_exist SRC
assert_same_file SRC, COPY