summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2016-12-16 22:54:20 +0900
committerGitHub <[email protected]>2016-12-16 22:54:20 +0900
commit7e8973629143de1952365803df0c45a89d462857 (patch)
tree5940a64ed1584064c33a12f3fc40558d41fc706a /test
parent0eafb089c9c913066f39608b5cc34001da698a59 (diff)
parent698378f076380b9668b3da9d1e1d0617073f917b (diff)
downloadmruby-7e8973629143de1952365803df0c45a89d462857.tar.gz
mruby-7e8973629143de1952365803df0c45a89d462857.zip
Merge pull request #70 from eagletmt/chmod
Add File.chmod
Diffstat (limited to 'test')
-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