summaryrefslogtreecommitdiffstats
path: root/test/fileutils
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-08 18:23:24 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-08 18:23:24 +0000
commitb47137b7e7ef6887724f41c472cc58dd722afe1d (patch)
treee66b224c53eb41f5ad3e79e69e566cea9872e329 /test/fileutils
parent3aa10de84261b3bed08d13e34583a3194326094d (diff)
downloadruby-b47137b7e7ef6887724f41c472cc58dd722afe1d.tar.gz
ruby-b47137b7e7ef6887724f41c472cc58dd722afe1d.tar.xz
ruby-b47137b7e7ef6887724f41c472cc58dd722afe1d.zip
* test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry copies only file type, not mtime. [ruby-dev:25383]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils')
-rw-r--r--test/fileutils/test_fileutils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 18944e913..480ef548c 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -751,12 +751,12 @@ end
each_sample_file do |srcpath, destpath|
copy_entry srcpath, destpath
assert_same_file srcpath, destpath
- assert_same_entry srcpath, destpath
+ assert_equal File.stat(srcpath).ftype, File.stat(destpath).ftype
end
if have_symlink?
File.symlink 'somewhere', 'tmp/symsrc'
copy_entry 'tmp/symsrc', 'tmp/symdest'
- assert_equal File.lstat('tmp/symsrc').mode, File.lstat('tmp/symdest').mode
+ assert_equal File.lstat('tmp/symsrc').ftype, File.lstat('tmp/symdest').ftype
end
end