Use local tmp folder for symlink tests

This commit is contained in:
Mads Ohm Larsen 2015-01-04 18:25:29 +01:00
parent a2b6aa263e
commit 1062fdf89f
1 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ CONTENT
context "with symlink'd include" do
should "not allow symlink includes" do
File.open("/tmp/pages-test", 'w') { |file| file.write("SYMLINK TEST") }
File.open("tmp/pages-test", 'w') { |file| file.write("SYMLINK TEST") }
assert_raise IOError do
content = <<CONTENT
---
@ -610,7 +610,7 @@ CONTENT
context "with symlink'd include" do
should "not allow symlink includes" do
File.open("/tmp/pages-test", 'w') { |file| file.write("SYMLINK TEST") }
File.open("tmp/pages-test", 'w') { |file| file.write("SYMLINK TEST") }
assert_raise IOError do
content = <<CONTENT
---