Skip to content

Commit

Permalink
add cuke feature for nested includes
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Jan 14, 2010
1 parent d88354e commit 0756d1f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion features/create_sites.feature
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,13 @@ Feature: Create sites
And I have an "info/index.html" page that contains "Basic Site with subdir include tag: {% include about.textile %}"
When I run jekyll
Then the _site directory should exist
And I should see "Basic Site with subdir include tag: Generated by Jekyll" in "_site/info/index.html"
And I should see "Basic Site with subdir include tag: Generated by Jekyll" in "_site/info/index.html"

Scenario: Basic site with nested include tag
Given I have a _includes directory
And I have an "_includes/about.textile" file that contains "Generated by {% include jekyll.textile %}"
And I have an "_includes/jekyll.textile" file that contains "Jekyll"
And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}"
When I run jekyll
Then the _site directory should exist
And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html"

0 comments on commit 0756d1f

Please sign in to comment.