From 82bee23bd048983e2e11e654754e67359419c5b6 Mon Sep 17 00:00:00 2001 From: Jens Nazarenus Date: Wed, 15 Jan 2014 21:35:55 +0100 Subject: [PATCH] added tests for full path leak to source directory when using include tag --- test/test_tags.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/test_tags.rb b/test/test_tags.rb index 8ecaf19b..efc108bd 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -487,6 +487,25 @@ CONTENT end end + context "include missing file" do + setup do + @content = < 'pretty', 'source' => source_dir, 'destination' => dest_dir, 'read_posts' => true}) + end + assert_equal 'Included file \'_includes/missing.html\' not found', exception.message + end + end + context "include tag with variable and liquid filters" do setup do stub(Jekyll).configuration do