From b2625d914e0b003495f6dd9a06a7c69d063e589c Mon Sep 17 00:00:00 2001 From: aamine Date: Sat, 8 Jan 2005 18:23:24 +0000 Subject: * test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry copies only file type, not mtime. [ruby-dev:25383] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/fileutils/test_fileutils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/fileutils') diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 18944e913e..480ef548ce 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 -- cgit v1.2.3