diff --git a/features/embed_filters.feature b/features/embed_filters.feature index f71dfb8f..61bd8da0 100644 --- a/features/embed_filters.feature +++ b/features/embed_filters.feature @@ -20,7 +20,7 @@ Feature: Embed filters And I have the following post: | title | date | layout | content | | Star & Wars | 3/27/2009 | default | These aren't the droids you're looking for. | - And I have a default layout that contains "{{ site.posts.first.title | xml_escape }}" + And I have a default layout that contains "{{ page.title | xml_escape }}" When I run jekyll Then the _site directory should exist And I should see "Star & Wars" in "_site/2009/03/27/star-wars.html" @@ -31,7 +31,7 @@ Feature: Embed filters And I have the following post: | title | date | layout | content | | Star Wars | 3/27/2009 | default | These aren't the droids you're looking for. | - And I have a default layout that contains "{{ site.posts.first.content | xml_escape }}" + And I have a default layout that contains "{{ content | xml_escape }}" When I run jekyll Then the _site directory should exist And I should see "7" in "_site/2009/03/27/star-wars.html" @@ -42,7 +42,7 @@ Feature: Embed filters And I have the following post: | title | date | layout | tags | content | | Star Wars | 3/27/2009 | default | [scifi, movies, force] | These aren't the droids you're looking for. | - And I have a default layout that contains "{{ site.posts.first.tags | array_to_sentence_string }}" + And I have a default layout that contains "{{ page.tags | array_to_sentence_string }}" When I run jekyll Then the _site directory should exist And I should see "scifi, movies, and force" in "_site/2009/03/27/star-wars.html" diff --git a/features/post_data.feature b/features/post_data.feature index 87f5d851..1751f3f4 100644 --- a/features/post_data.feature +++ b/features/post_data.feature @@ -9,7 +9,7 @@ Feature: Post data And I have the following post: | title | date | layout | content | | Star Wars | 3/27/2009 | simple | Luke, I am your father. | - And I have a simple layout that contains "Post title: {{ site.posts.first.title }}" + And I have a simple layout that contains "Post title: {{ page.title }}" When I run jekyll Then the _site directory should exist And I should see "Post title: Star Wars" in "_site/2009/03/27/star-wars.html" @@ -20,7 +20,7 @@ Feature: Post data And I have the following post: | title | date | layout | content | | Star Wars | 3/27/2009 | simple | Luke, I am your father. | - And I have a simple layout that contains "Post url: {{ site.posts.first.url }}" + And I have a simple layout that contains "Post url: {{ page.url }}" When I run jekyll Then the _site directory should exist And I should see "Post url: /2009/03/27/star-wars.html" in "_site/2009/03/27/star-wars.html" @@ -31,7 +31,7 @@ Feature: Post data And I have the following post: | title | date | layout | content | | Star Wars | 3/27/2009 | simple | Luke, I am your father. | - And I have a simple layout that contains "Post date: {{ site.posts.first.date }}" + And I have a simple layout that contains "Post date: {{ page.date }}" When I run jekyll Then the _site directory should exist And I should see "Post date: Fri Mar 27" in "_site/2009/03/27/star-wars.html" @@ -42,7 +42,7 @@ Feature: Post data And I have the following post: | title | date | layout | content | | Star Wars | 3/27/2009 | simple | Luke, I am your father. | - And I have a simple layout that contains "Post id: {{ site.posts.first.id }}" + And I have a simple layout that contains "Post id: {{ page.id }}" When I run jekyll Then the _site directory should exist And I should see "Post id: /2009/03/27/star-wars" in "_site/2009/03/27/star-wars.html" @@ -53,7 +53,7 @@ Feature: Post data And I have the following post: | title | date | layout | content | | Star Wars | 3/27/2009 | simple | Luke, I am your father. | - And I have a simple layout that contains "Post content: {{ site.posts.first.content }}" + And I have a simple layout that contains "Post content: {{ content }}" When I run jekyll Then the _site directory should exist And I should see "Post content:
Luke, I am your father.
" in "_site/2009/03/27/star-wars.html" @@ -65,7 +65,7 @@ Feature: Post data And I have the following post in "movies": | title | date | layout | content | | Star Wars | 3/27/2009 | simple | Luke, I am your father. | - And I have a simple layout that contains "Post category: {{ site.posts.first.categories }}" + And I have a simple layout that contains "Post category: {{ page.categories }}" When I run jekyll Then the _site directory should exist And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html" @@ -76,7 +76,7 @@ Feature: Post data And I have the following post: | title | date | layout | tag | content | | Star Wars | 5/18/2009 | simple | twist | Luke, I am your father. | - And I have a simple layout that contains "Post tags: {{ site.posts.first.tags }}" + And I have a simple layout that contains "Post tags: {{ page.tags }}" When I run jekyll Then the _site directory should exist And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html" @@ -89,7 +89,7 @@ Feature: Post data And I have the following post in "movies/scifi": | title | date | layout | content | | Star Wars | 3/27/2009 | simple | Luke, I am your father. | - And I have a simple layout that contains "Post categories: {{ site.posts.first.categories | array_to_sentence_string }}" + And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}" When I run jekyll Then the _site directory should exist And I should see "Post categories: movies and scifi" in "_site/movies/scifi/2009/03/27/star-wars.html" @@ -100,7 +100,7 @@ Feature: Post data And I have the following post: | title | date | layout | category | content | | Star Wars | 3/27/2009 | simple | movies | Luke, I am your father. | - And I have a simple layout that contains "Post category: {{ site.posts.first.categories }}" + And I have a simple layout that contains "Post category: {{ page.categories }}" When I run jekyll Then the _site directory should exist And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html" @@ -111,7 +111,7 @@ Feature: Post data And I have the following post: | title | date | layout | categories | content | | Star Wars | 3/27/2009 | simple | ['movies', 'scifi'] | Luke, I am your father. | - And I have a simple layout that contains "Post categories: {{ site.posts.first.categories | array_to_sentence_string }}" + And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}" When I run jekyll Then the _site directory should exist And I should see "Post categories: movies and scifi" in "_site/movies/scifi/2009/03/27/star-wars.html" @@ -133,7 +133,7 @@ Feature: Post data And I have the following post: | title | date | layout | author | content | | Star Wars | 3/27/2009 | simple | Darth Vader | Luke, I am your father. | - And I have a simple layout that contains "Post author: {{ site.posts.first.author }}" + And I have a simple layout that contains "Post author: {{ page.author }}" When I run jekyll Then the _site directory should exist And I should see "Post author: Darth Vader" in "_site/2009/03/27/star-wars.html"