diff --git a/.gitignore b/.gitignore index d9effd5b..36da9656 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,5 @@ site/_site/ coverage .ruby-version .sass-cache -tmp/stackprof-* +tmp/* .jekyll-metadata diff --git a/script/test b/script/test index a6ae0f4d..d69ad53b 100755 --- a/script/test +++ b/script/test @@ -4,6 +4,10 @@ # script/test # script/test +if [ ! -d tmp ]; then + mkdir tmp +fi + if [ -z "$1" ]; then TEST_FILES=$(ruby -e "puts Dir.glob('test/test_*.rb')") else diff --git a/test/source/_includes/tmp b/test/source/_includes/tmp index cad23091..a846f50d 120000 --- a/test/source/_includes/tmp +++ b/test/source/_includes/tmp @@ -1 +1 @@ -/tmp \ No newline at end of file +../../../tmp/ \ No newline at end of file diff --git a/test/test_tags.rb b/test/test_tags.rb index c910d12b..c6df3e05 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -359,7 +359,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 = <