From 87f17506747d84bc2caeebb6184a75bcc3016fa0 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 24 Jan 2021 09:26:37 +0200 Subject: Fixed tests on older Ruby versions --- tests/test_bindfs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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") -- cgit v1.2.3