aboutsummaryrefslogtreecommitdiffstats
path: root/test/fileutils/fileasserts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/fileutils/fileasserts.rb')
-rw-r--r--test/fileutils/fileasserts.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb
index c60606ee7f..2cc7e2316b 100644
--- a/test/fileutils/fileasserts.rb
+++ b/test/fileutils/fileasserts.rb
@@ -88,6 +88,15 @@ File modes expected to be equal:
<#{'%0*o' % [width, mode2]}>: "#{file2}"
EOT
end
+
+ def assert_ownership_group(expected, file)
+ actual = File.stat(file).gid
+ assert expected == actual, <<EOT
+File group ownership of "#{file}" unexpected:
+ Expected: <#{expected}>
+ Actual: <#{actual}>
+EOT
+ end
end
end
end