features/post_data: do NOT allow page.path to be overridden
This commit is contained in:
parent
30ceda52ef
commit
9bb59e9999
|
@ -233,14 +233,14 @@ Feature: Post data
|
||||||
| dir | dir/ |
|
| dir | dir/ |
|
||||||
| dir/nested | dir/nested/ |
|
| dir/nested | dir/nested/ |
|
||||||
|
|
||||||
Scenario: Override page.path variable
|
Scenario: Cannot override page.path variable
|
||||||
Given I have a _posts directory
|
Given I have a _posts directory
|
||||||
And I have the following post:
|
And I have the following post:
|
||||||
| title | date | path | content |
|
| title | date | path | content |
|
||||||
| override | 2013-04-12 | override-path.html | Custom path: {{ page.path }} |
|
| override | 2013-04-12 | override-path.html | Non-custom path: {{ page.path }} |
|
||||||
When I run jekyll build
|
When I run jekyll build
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And I should see "Custom path: override-path.html" in "_site/2013/04/12/override.html"
|
And I should see "Non-custom path: _posts/2013-04-12-override.markdown in "_site/2013/04/12/override.html"
|
||||||
|
|
||||||
Scenario: Disable a post from being published
|
Scenario: Disable a post from being published
|
||||||
Given I have a _posts directory
|
Given I have a _posts directory
|
||||||
|
|
Loading…
Reference in New Issue