aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2021-01-24 09:26:37 +0200
committerMartin Pärtel <martin.partel@gmail.com>2021-01-24 09:26:37 +0200
commit87f17506747d84bc2caeebb6184a75bcc3016fa0 (patch)
tree56ca371ac38403035cbabf66f7fdc9e6a150f70d /tests
parent5bdf47271d95f551fc6063391b7903579d918e4d (diff)
downloadbindfs-87f17506747d84bc2caeebb6184a75bcc3016fa0.tar.gz
Fixed tests on older Ruby versions
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_bindfs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb
index a616017..ed33400 100755
--- a/tests/test_bindfs.rb
+++ b/tests/test_bindfs.rb
@@ -396,8 +396,8 @@ root_testenv("--map=0/1:@0/@1", :title => "--map and chown/chgrp") do
assert { File.stat('mnt/file1').gid == 1 }
end
-Tempfile.create('passwdfile') do |passwd_file|
- Tempfile.create('groupfile') do |group_file|
+Tempfile.open('passwdfile') do |passwd_file|
+ Tempfile.open('groupfile') do |group_file|
passwd_file.puts("nobody:x:123:456:,,,:/tmp:/bin/false")
passwd_file.flush
group_file.write("#{nobody_group}:x:789")