From 32e7d9140eb2bc9890a690fd62bf1690ee8fd5e3 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 29 Apr 2020 14:38:03 +0900 Subject: [ruby/spec] Temporary directories should be under the mock_dir --- spec/ruby/shared/file/world_readable.rb | 2 +- spec/ruby/shared/file/world_writable.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/ruby/shared') diff --git a/spec/ruby/shared/file/world_readable.rb b/spec/ruby/shared/file/world_readable.rb index 85761e633f..c2c6264627 100644 --- a/spec/ruby/shared/file/world_readable.rb +++ b/spec/ruby/shared/file/world_readable.rb @@ -35,7 +35,7 @@ describe :file_world_readable, shared: true do end it "returns a Fixnum if the file is a directory and chmod 644" do - dir = rand().to_s + '-ww' + dir = tmp(rand().to_s + '-ww') Dir.mkdir(dir) Dir.should.exist?(dir) File.chmod(0644, dir) diff --git a/spec/ruby/shared/file/world_writable.rb b/spec/ruby/shared/file/world_writable.rb index 61b691bcb6..84d7deb5d3 100644 --- a/spec/ruby/shared/file/world_writable.rb +++ b/spec/ruby/shared/file/world_writable.rb @@ -34,7 +34,7 @@ describe :file_world_writable, shared: true do end it "returns a Fixnum if the file is a directory and chmod 777" do - dir = rand().to_s + '-ww' + dir = tmp(rand().to_s + '-ww') Dir.mkdir(dir) Dir.should.exist?(dir) File.chmod(0777, dir) -- cgit v1.2.3