1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/spec] Temporary directories should be under the mock_dir

This commit is contained in:
Nobuyoshi Nakada 2020-04-29 14:38:03 +09:00
parent 56d6cfe88a
commit 32e7d9140e
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
4 changed files with 22 additions and 18 deletions

View file

@ -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)