From 32b4de3ea6eb82eedc2177d1ac083e23fa1a2586 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Tue, 15 Oct 2013 13:32:49 +0200 Subject: [PATCH] change cucumber feature to test for precedence too --- features/frontmatter_defaults.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/frontmatter_defaults.feature b/features/frontmatter_defaults.feature index ba00709c..ac7e1ade 100644 --- a/features/frontmatter_defaults.feature +++ b/features/frontmatter_defaults.feature @@ -45,7 +45,7 @@ Feature: frontmatter defaults And I have an "index.html" page with title "overview" that contains "Overview for {{page.name}}" And I have an "special/index.html" page with title "section overview" that contains "Overview for {{page.name}}" - And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {layout: "root", name: "the webpage"}}, {scope: {path: "special"}, values: {layout: "subfolder", name: "the special section"}}]" + And I have a configuration file with "defaults" set to "[{scope: {path: "special"}, values: {layout: "subfolder", name: "the special section"}}, {scope: {path: ""}, values: {layout: "root", name: "the webpage"}}]" When I run jekyll Then the _site directory should exist @@ -60,7 +60,7 @@ Feature: frontmatter defaults | title | date | content | | this is a post | 2013-10-14 | blabla | And I have an "index.html" page that contains "interesting stuff" - And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {permalink: "/perma.html"}}, {scope: {path: "", type: "post"}, values: {permalink: "/post.html"}}, {scope: {path: "", type: "page"}, values: {permalink: "/page.html"}}]" + And I have a configuration file with "defaults" set to "[{scope: {path: "", type: "post"}, values: {permalink: "/post.html"}}, {scope: {path: "", type: "page"}, values: {permalink: "/page.html"}}, {scope: {path: ""}, values: {permalink: "/perma.html"}}]" When I run jekyll Then I should see "blabla" in "_site/post.html" And I should see "interesting stuff" in "_site/page.html"