features/post_data: do NOT allow page.path to be overridden

This commit is contained in:
Parker Moore 2015-12-22 21:36:29 -05:00
parent 30ceda52ef
commit 9bb59e9999
1 changed files with 3 additions and 3 deletions

View File

@ -233,14 +233,14 @@ Feature: Post data
| dir | dir/ |
| dir/nested | dir/nested/ |
Scenario: Override page.path variable
Scenario: Cannot override page.path variable
Given I have a _posts directory
And I have the following post:
| 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
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
Given I have a _posts directory