test symlinkd dir, not file

Signed-off-by: Parker Moore <parkrmoore@gmail.com>
This commit is contained in:
Ben Balter 2014-01-06 22:49:04 -05:00 committed by Parker Moore
parent 323d14845f
commit 4e318cd192
3 changed files with 3 additions and 3 deletions

View File

@ -1 +0,0 @@
/tmp/pages-test

1
test/source/_includes/tmp Symbolic link
View File

@ -0,0 +1 @@
/tmp

View File

@ -372,10 +372,10 @@ CONTENT
title: Include symlink
---
{% include about.html %}
{% include tmp/pages-test %}
CONTENT
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true})
create_post(content, {'permalink' => 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true, 'safe' => true })
end
should "not allow symlink includes" do