Merge pull request #3320 from jekyll/mcallan83-test_global_post_permalinks_with_template_variables

This commit is contained in:
Parker Moore 2015-01-17 15:47:03 -08:00
commit cf2f439db1
1 changed files with 9 additions and 0 deletions

View File

@ -100,6 +100,15 @@ Feature: frontmatter defaults
And I should see "nothing" in "_site/override.html"
But the "_site/perma.html" file should not exist
Scenario: Define permalink default for posts
Given I have a _posts directory
And I have the following post:
| title | date | category | content |
| testpost | 2013-10-14 | blog | blabla |
And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "posts"}, values: {permalink: "/:categories/:title/"}}]"
When I run jekyll build
Then I should see "blabla" in "_site/blog/testpost/index.html"
Scenario: Use frontmatter defaults in collections
Given I have a _slides directory
And I have a "index.html" file that contains "nothing"