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:
parent
56d6cfe88a
commit
32e7d9140e
4 changed files with 22 additions and 18 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue