move cucumber features to own file

This commit is contained in:
maul.esel 2013-10-14 16:48:26 +02:00
parent 1cb67932f6
commit 8091029329
2 changed files with 22 additions and 22 deletions

View File

@ -0,0 +1,22 @@
Feature: frontmatter defaults
Scenario: Use default for frontmatter variables internally
Given I have a _posts directory
And I have a _layouts directory
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "post"}, values: {layout: "pretty"}}]"
And I have a pretty layout that contains "THIS IS THE LAYOUT: {{content}}"
And I have the following post:
| title | date | content |
| default layout | 2013-09-11 | Just some post |
When I run jekyll
Then the _site directory should exist
And I should see "THIS IS THE LAYOUT: <p>Just some post</p>" in "_site/2013/09/11/default-layout.html"
Scenario: Use default for frontmatter variables in Liquid
Given I have a _posts directory
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "post"}, values: {custom: "some special data", author: "Ben"}}]"
And I have the following post:
| title | date | author | content |
| default data | 2013-09-11 | Marc | <p>{{page.custom}}</p><div>{{page.author}}</div> |
When I run jekyll
Then the _site directory should exist
And I should see "<p>some special data</p><div>Marc</div>" in "_site/2013/09/11/default-data.html"

View File

@ -212,25 +212,3 @@ Feature: Post data
Then the _site directory should exist
And I should see "next post: Some like it hot" in "_site/2009/03/27/star-wars.html"
And I should see "Previous post: Some like it hot" in "_site/2009/05/27/terminator.html"
Scenario: Use default for frontmatter variables internally
Given I have a _posts directory
And I have a _layouts directory
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "post"}, values: {layout: "pretty"}}]"
And I have a pretty layout that contains "THIS IS THE LAYOUT: {{content}}"
And I have the following post:
| title | date | content |
| default layout | 2013-09-11 | Just some post |
When I run jekyll
Then the _site directory should exist
And I should see "THIS IS THE LAYOUT: <p>Just some post</p>" in "_site/2013/09/11/default-layout.html"
Scenario: Use default for frontmatter variables in Liquid
Given I have a _posts directory
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "post"}, values: {custom: "some special data", author: "Ben"}}]"
And I have the following post:
| title | date | author | content |
| default data | 2013-09-11 | Marc | <p>{{page.custom}}</p><div>{{page.author}}</div> |
When I run jekyll
Then the _site directory should exist
And I should see "<p>some special data</p><div>Marc</div>" in "_site/2013/09/11/default-data.html"