We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 414c00e commit f335f2cCopy full SHA for f335f2c
test/test_tmpdir.rb
@@ -19,6 +19,12 @@ def test_world_writable
19
oldenv = envs.each_with_object({}) {|v, h| h[v] = ENV.delete(v)}
20
begin
21
envs.each do |e|
22
+ tmpdirx = File.join(tmpdir, e)
23
+ ENV[e] = tmpdirx
24
+ assert_not_equal(tmpdirx, Dir.tmpdir)
25
+ File.write(tmpdirx, "")
26
27
+ File.unlink(tmpdirx)
28
ENV[e] = tmpdir
29
assert_equal(tmpdir, Dir.tmpdir)
30
File.chmod(0777, tmpdir)
0 commit comments