aboutsummaryrefslogtreecommitdiffstats
path: root/test/fileutils/fileasserts.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-26 15:03:37 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-26 15:03:37 +0000
commit19b9567c8421eee4755701763ef00f4c9f7ffe41 (patch)
tree9e813e7eb5f4c56a5de156b99b0aa7bcea499726 /test/fileutils/fileasserts.rb
parent4b62150e0be909f703746abfb5b87d6ffae899b9 (diff)
downloadruby-19b9567c8421eee4755701763ef00f4c9f7ffe41.tar.gz
* test/fileutils/test_fileutils.rb (setup): support BSD style directory group inheritance. [ruby-dev:25440]
* test/fileutils/fileasserts.rb (assert_same_entry): show entry difference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils/fileasserts.rb')
-rw-r--r--test/fileutils/fileasserts.rb19
1 files changed, 7 insertions, 12 deletions
diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb
index ea03534545..c2e9244a96 100644
--- a/test/fileutils/fileasserts.rb
+++ b/test/fileutils/fileasserts.rb
@@ -13,18 +13,13 @@ module Test
end
def assert_same_entry(from, to)
- _wrap_assertion {
- assert_block("entry #{from} != #{to}") {
- a = File.stat(from)
- b = File.stat(to)
-
- a.mode == b.mode and
- #a.atime == b.atime and
- a.mtime == b.mtime and
- a.uid == b.uid and
- a.gid == b.gid
- }
- }
+ a = File.stat(from)
+ b = File.stat(to)
+ assert_equal a.mode, b.mode, "mode #{a.mode} != #{b.mode}"
+ #assert_equal a.atime, b.atime
+ assert_equal a.mtime, b.mtime, "mtime #{a.mtime} != #{b.mtime}"
+ assert_equal a.uid, b.uid, "uid #{a.uid} != #{b.uid}"
+ assert_equal a.gid, b.gid, "gid #{a.gid} != #{b.gid}"
end
def assert_file_exist(path)