From 50e945f25187c362ae49b27d6a00a5a9c3b17802 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Mon, 2 Sep 2013 15:03:03 +0200 Subject: [PATCH] Add a cucumber feature for variable includes --- features/include_tag.feature | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/features/include_tag.feature b/features/include_tag.feature index 66f9d4a6..f9d4800d 100644 --- a/features/include_tag.feature +++ b/features/include_tag.feature @@ -33,3 +33,11 @@ Feature: Include tags And I should see "
  • param1_or_2 = value
  • " in "_site/2013/04/12/parameter-syntax.html" And I should see "
  • local = some text
  • " in "_site/2013/06/22/pass-a-variable.html" And I should see "
  • layout = default
  • " in "_site/2013/06/22/pass-a-variable.html" + + Scenario: Include a file from a variable + Given I have an _includes directory + And I have an "_includes/snippet.html" file that contains "a snippet" + And I have an "index.html" page that contains "{% assign file = 'snippet.html' %}{% include {{file}} %}" + When I run jekyll + Then the _site directory should exist + And I should see "a snippet" in "_site/index.html" \ No newline at end of file