summaryrefslogtreecommitdiffhomepage
path: root/test/file.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/file.rb')
-rw-r--r--test/file.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/file.rb b/test/file.rb
index 48a6eea9d..f5607bbaa 100644
--- a/test/file.rb
+++ b/test/file.rb
@@ -146,3 +146,12 @@ assert('File.symlink') do
end
end
end
+
+assert('File.chmod') do
+ File.open('chmod-test', 'w') {}
+ begin
+ assert_equal 1, File.chmod(0400, 'chmod-test')
+ ensure
+ File.delete('chmod-test')
+ end
+end