From 2f79262f80158128b9c763e13b5c693e7da881e5 Mon Sep 17 00:00:00 2001 From: Slava Pavlutin Date: Sat, 1 Mar 2014 23:08:30 +0400 Subject: [PATCH 1/2] Fix tables alignments in Cucumber features --- features/create_sites.feature | 24 ++++++++--------- features/drafts.feature | 6 ++--- features/embed_filters.feature | 13 ++++----- features/include_tag.feature | 14 +++++----- features/markdown.feature | 8 +++--- features/pagination.feature | 4 +-- features/permalinks.feature | 14 +++++----- features/post_data.feature | 42 ++++++++++++++--------------- features/post_excerpts.feature | 12 ++++----- features/site_configuration.feature | 34 +++++++++++------------ features/site_data.feature | 30 ++++++++++----------- 11 files changed, 101 insertions(+), 100 deletions(-) diff --git a/features/create_sites.feature b/features/create_sites.feature index a25a0d32..5d22397b 100644 --- a/features/create_sites.feature +++ b/features/create_sites.feature @@ -19,7 +19,7 @@ Feature: Create sites Scenario: Basic site with a post Given I have a _posts directory And I have the following post: - | title | date | content | + | title | date | content | | Hackers | 2009-03-27 | My First Exploit | When I run jekyll Then the _site directory should exist @@ -37,7 +37,7 @@ Feature: Create sites Given I have a _layouts directory And I have a _posts directory And I have the following posts: - | title | date | layout | content | + | title | date | layout | content | | Wargames | 2009-03-27 | default | The only winning move is not to play. | And I have a default layout that contains "Post Layout: {{ content }}" When I run jekyll @@ -48,7 +48,7 @@ Feature: Create sites Given I have a _layouts directory And I have a _posts directory And I have the following posts: - | title | date | layout | content | + | title | date | layout | content | | Wargames | 2009-03-27 | post/simple | The only winning move is not to play. | And I have a post/simple layout that contains "Post Layout: {{ content }}" When I run jekyll @@ -66,14 +66,14 @@ Feature: Create sites And I have an "another_file" file that contains "" And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2009-03-27 | post | content for entry1. | - | entry2 | 2009-04-27 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2009-03-27 | post | content for entry1. | + | entry2 | 2009-04-27 | post | content for entry2. | And I have a category/_posts directory And I have the following posts in "category": - | title | date | layout | content | - | entry3 | 2009-05-27 | post | content for entry3. | - | entry4 | 2009-06-27 | post | content for entry4. | + | title | date | layout | content | + | entry3 | 2009-05-27 | post | content for entry3. | + | entry4 | 2009-06-27 | post | content for entry4. | When I run jekyll Then the _site directory should exist And I should see "Page : Site contains 2 pages and 4 posts" in "_site/index.html" @@ -116,9 +116,9 @@ Feature: Create sites And I have a configuration file with "permalink" set to "pretty" And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | - | entry2 | 2020-01-31 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | + | entry2 | 2020-01-31 | post | content for entry2. | When I run jekyll Then the _site directory should exist And I should see "URL: /2020/01/31/entry2/" in "_site/index.html" diff --git a/features/drafts.feature b/features/drafts.feature index efff9823..1bf60303 100644 --- a/features/drafts.feature +++ b/features/drafts.feature @@ -7,7 +7,7 @@ Feature: Draft Posts Given I have a configuration file with "permalink" set to "none" And I have a _drafts directory And I have the following draft: - | title | date | layout | content | + | title | date | layout | content | | Recipe | 2009-03-27 | default | Not baked yet. | When I run jekyll with drafts Then the _site directory should exist @@ -18,7 +18,7 @@ Feature: Draft Posts And I have an "index.html" page that contains "Totally index" And I have a _drafts directory And I have the following draft: - | title | date | layout | content | + | title | date | layout | content | | Recipe | 2009-03-27 | default | Not baked yet. | When I run jekyll Then the _site directory should exist @@ -28,7 +28,7 @@ Feature: Draft Posts Given I have a configuration file with "permalink" set to "none" And I have a _drafts directory And I have the following draft: - | title | date | layout | content | + | title | date | layout | content | | Recipe | 2009-03-27 | simple | Post path: {{ page.path }} | When I run jekyll with drafts Then the _site directory should exist diff --git a/features/embed_filters.feature b/features/embed_filters.feature index 9d513ec2..e5f92d52 100644 --- a/features/embed_filters.feature +++ b/features/embed_filters.feature @@ -7,7 +7,7 @@ Feature: Embed filters Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. | And I have a default layout that contains "{{ site.time | date_to_xmlschema }}" When I run jekyll @@ -18,8 +18,9 @@ Feature: Embed filters Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | - | Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. | + | title | date | layout | content | + | Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. | + And I have a default layout that contains "{{ page.title | xml_escape }}" When I run jekyll Then the _site directory should exist @@ -29,7 +30,7 @@ Feature: Embed filters Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. | And I have a default layout that contains "{{ content | xml_escape }}" When I run jekyll @@ -40,7 +41,7 @@ Feature: Embed filters Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | tags | content | + | title | date | layout | tags | content | | Star Wars | 2009-03-27 | default | [scifi, movies, force] | These aren't the droids you're looking for. | And I have a default layout that contains "{{ page.tags | array_to_sentence_string }}" When I run jekyll @@ -51,7 +52,7 @@ Feature: Embed filters Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | default | These aren't the droids you're looking for. | And I have a default layout that contains "By {{ '_Obi-wan_' | textilize }}" When I run jekyll diff --git a/features/include_tag.feature b/features/include_tag.feature index 5f0e5799..bef09e3f 100644 --- a/features/include_tag.feature +++ b/features/include_tag.feature @@ -10,14 +10,14 @@ Feature: Include tags And I have an "_includes/ignore.html" file that contains "" And I have a _posts directory And I have the following post: - | title | date | layout | content | - | Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} | - | Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} | - | List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} | - | Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} | + | title | date | layout | content | + | Include Files | 2013-03-21 | default | {% include header.html param="myparam" %} | + | Ignore params if unused | 2013-03-21 | default | {% include ignore.html date="today" %} | + | List multiple parameters | 2013-03-21 | default | {% include params.html date="today" start="tomorrow" %} | + | Dont keep parameters | 2013-03-21 | default | {% include ignore.html param="test" %}\n{% include header.html %} | | Allow params with spaces and quotes | 2013-04-07 | default | {% include params.html cool="param with spaces" super="\"quoted\"" single='has "quotes"' escaped='\'single\' quotes' %} | - | Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} | - | Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} | + | Parameter syntax | 2013-04-12 | default | {% include params.html param1_or_2="value" %} | + | Pass a variable | 2013-06-22 | default | {% assign var = 'some text' %}{% include params.html local=var layout=page.layout %} | When I run jekyll Then the _site directory should exist And I should see "
My awesome blog header: myparam
" in "_site/2013/03/21/include-files.html" diff --git a/features/markdown.feature b/features/markdown.feature index 778fc5d2..b864e211 100644 --- a/features/markdown.feature +++ b/features/markdown.feature @@ -8,7 +8,7 @@ Feature: Markdown And I have an "index.html" page that contains "Index - {% for post in site.posts %} {{ post.content }} {% endfor %}" And I have a _posts directory And I have the following post: - | title | date | content | type | + | title | date | content | type | | Hackers | 2009-03-27 | # My Title | markdown | When I run jekyll Then the _site directory should exist @@ -21,13 +21,13 @@ Feature: Markdown And I have an "index.html" page that contains "Index - {% for post in paginator.posts %} {{ post.content }} {% endfor %}" And I have a _posts directory And I have the following post: - | title | date | content | type | + | title | date | content | type | | Hackers | 2009-03-27 | # My Title | markdown | When I run jekyll Then the _site directory should exist And I should see "Index" in "_site/index.html" And I should see "

My Title

" in "_site/index.html" - + Scenario: Maruku fenced codeblocks Given I have a configuration file with "markdown" set to "maruku" And I have an "index.markdown" file with content: @@ -46,7 +46,7 @@ Feature: Markdown Then the _site directory should exist And I should see "My awesome code" in "_site/index.html" And I should see "
\nMy awesome code\n
" in "_site/index.html" - + Scenario: Maruku fenced codeblocks Given I have a configuration file with "markdown" set to "maruku" And I have an "index.markdown" file with content: diff --git a/features/pagination.feature b/features/pagination.feature index 76c62361..fdf652a2 100644 --- a/features/pagination.feature +++ b/features/pagination.feature @@ -9,7 +9,7 @@ Feature: Site pagination And I have an "index.html" page that contains "{{ paginator.posts.size }}" And I have a _posts directory And I have the following posts: - | title | date | layout | content | + | title | date | layout | content | | Wargames | 2009-03-27 | default | The only winning move is not to play. | | Wargames2 | 2009-04-27 | default | The only winning move is not to play2. | | Wargames3 | 2009-05-27 | default | The only winning move is not to play3. | @@ -36,7 +36,7 @@ Feature: Site pagination And I have an "blog/index.html" page that contains "{{ paginator.posts.size }}" And I have a _posts directory And I have the following posts: - | title | date | layout | content | + | title | date | layout | content | | Wargames | 2009-03-27 | default | The only winning move is not to play. | | Wargames2 | 2009-04-27 | default | The only winning move is not to play2. | | Wargames3 | 2009-05-27 | default | The only winning move is not to play3. | diff --git a/features/permalinks.feature b/features/permalinks.feature index 64b3c173..879f2590 100644 --- a/features/permalinks.feature +++ b/features/permalinks.feature @@ -6,7 +6,7 @@ Feature: Fancy permalinks Scenario: Use none permalink schema Given I have a _posts directory And I have the following post: - | title | date | content | + | title | date | content | | None Permalink Schema | 2009-03-27 | Totally nothing. | And I have a configuration file with "permalink" set to "none" When I run jekyll @@ -16,7 +16,7 @@ Feature: Fancy permalinks Scenario: Use pretty permalink schema Given I have a _posts directory And I have the following post: - | title | date | content | + | title | date | content | | Pretty Permalink Schema | 2009-03-27 | Totally wordpress. | And I have a configuration file with "permalink" set to "pretty" When I run jekyll @@ -37,7 +37,7 @@ Feature: Fancy permalinks Scenario: Use custom permalink schema with prefix Given I have a _posts directory And I have the following post: - | title | category | date | content | + | title | category | date | content | | Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. | And I have a configuration file with "permalink" set to "/blog/:year/:month/:day/:title" When I run jekyll @@ -47,7 +47,7 @@ Feature: Fancy permalinks Scenario: Use custom permalink schema with category Given I have a _posts directory And I have the following post: - | title | category | date | content | + | title | category | date | content | | Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. | And I have a configuration file with "permalink" set to "/:categories/:title.html" When I run jekyll @@ -57,7 +57,7 @@ Feature: Fancy permalinks Scenario: Use custom permalink schema with squished date Given I have a _posts directory And I have the following post: - | title | category | date | content | + | title | category | date | content | | Custom Permalink Schema | stuff | 2009-03-27 | Totally custom. | And I have a configuration file with "permalink" set to "/:month-:day-:year/:title.html" When I run jekyll @@ -67,7 +67,7 @@ Feature: Fancy permalinks Scenario: Use per-post permalink Given I have a _posts directory And I have the following post: - | title | date | permalink | content | + | title | date | permalink | content | | Some post | 2013-04-14 | /custom/posts/1 | bla bla | When I run jekyll Then the _site directory should exist @@ -77,7 +77,7 @@ Feature: Fancy permalinks Scenario: Use per-post ending in .html Given I have a _posts directory And I have the following post: - | title | date | permalink | content | + | title | date | permalink | content | | Some post | 2013-04-14 | /custom/posts/some.html | bla bla | When I run jekyll Then the _site directory should exist diff --git a/features/post_data.feature b/features/post_data.feature index 34f58187..1bd47083 100644 --- a/features/post_data.feature +++ b/features/post_data.feature @@ -7,7 +7,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post title: {{ page.title }}" When I run jekyll @@ -18,7 +18,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post url: {{ page.url }}" When I run jekyll @@ -29,7 +29,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post date: {{ page.date | date_to_string }}" When I run jekyll @@ -40,7 +40,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post id: {{ page.id }}" When I run jekyll @@ -51,7 +51,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post content: {{ content }}" When I run jekyll @@ -63,7 +63,7 @@ Feature: Post data And I have a movies/_posts directory And I have a _layouts directory And I have the following post in "movies": - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post category: {{ page.categories }}" When I run jekyll @@ -74,7 +74,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | tag | content | + | title | date | layout | tag | content | | Star Wars | 2009-05-18 | simple | twist | Luke, I am your father. | And I have a simple layout that contains "Post tags: {{ page.tags }}" When I run jekyll @@ -87,7 +87,7 @@ Feature: Post data And I have a scifi/movies/_posts directory And I have a _layouts directory And I have the following post in "scifi/movies": - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}" When I run jekyll @@ -100,7 +100,7 @@ Feature: Post data And I have a scifi/Movies/_posts directory And I have a _layouts directory And I have the following post in "scifi/Movies": - | title | date | layout | content | + | title | date | layout | content | | Star Wars | 2009-03-27 | simple | Luke, I am your father. | And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}" When I run jekyll @@ -111,7 +111,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | category | content | + | title | date | layout | category | content | | Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. | And I have a simple layout that contains "Post category: {{ page.categories }}" When I run jekyll @@ -122,7 +122,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | category | content | + | title | date | layout | category | content | | Star Wars | 2009-03-27 | simple | Movies | Luke, I am your father. | And I have a simple layout that contains "Post category: {{ page.categories }}" When I run jekyll @@ -133,7 +133,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | category | content | + | title | date | layout | category | content | | Star Wars | 2009-03-27 | simple | movies | Luke, I am your father. | And I have a simple layout that contains "Post category: {{ page.categories }}" When I run jekyll @@ -144,7 +144,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following posts: - | title | date | layout | categories | content | + | title | date | layout | categories | content | | Star Wars | 2009-03-27 | simple | ['scifi', 'Movies'] | Luke, I am your father. | | Star Trek | 2013-03-17 | simple | ['SciFi', 'movies'] | Jean Luc, I am your father. | And I have a simple layout that contains "Post categories: {{ page.categories | array_to_sentence_string }}" @@ -156,22 +156,22 @@ Feature: Post data Scenario Outline: Use page.path variable Given I have a /_posts directory And I have the following post in "": - | title | type | date | content | + | title | type | date | content | | my-post | html | 2013-04-12 | Source path: {{ page.path }} | When I run jekyll Then the _site directory should exist And I should see "Source path: _posts/2013-04-12-my-post.html" in "_site//2013/04/12/my-post.html" Examples: - | dir | path_prefix | - | . | | - | dir | dir/ | + | dir | path_prefix | + | . | | + | dir | dir/ | | dir/nested | dir/nested/ | Scenario: Override page.path variable Given I have a _posts directory 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 }} | When I run jekyll Then the _site directory should exist @@ -181,7 +181,7 @@ Feature: Post data Given I have a _posts directory And I have an "index.html" file that contains "Published!" And I have the following post: - | title | date | layout | published | content | + | title | date | layout | published | content | | Star Wars | 2009-03-27 | simple | false | Luke, I am your father. | When I run jekyll Then the _site directory should exist @@ -192,7 +192,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | author | content | + | title | date | layout | author | content | | Star Wars | 2009-03-27 | simple | Darth Vader | Luke, I am your father. | And I have a simple layout that contains "Post author: {{ page.author }}" When I run jekyll @@ -203,7 +203,7 @@ Feature: Post data Given I have a _posts directory And I have a _layouts directory And I have the following posts: - | title | date | layout | author | content | + | title | date | layout | author | content | | Star Wars | 2009-03-27 | ordered | Darth Vader | Luke, I am your father. | | Some like it hot | 2009-04-27 | ordered | Osgood | Nobody is perfect. | | Terminator | 2009-05-27 | ordered | Arnold | Sayonara, baby | diff --git a/features/post_excerpts.feature b/features/post_excerpts.feature index 09e41338..7f0bdb6e 100644 --- a/features/post_excerpts.feature +++ b/features/post_excerpts.feature @@ -9,8 +9,8 @@ Feature: Post excerpts Given I have an "index.html" page that contains "{% for post in site.posts %}{{ post.excerpt }}{% endfor %}" And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | When I run jekyll Then the _site directory should exist And I should see exactly "

content for entry1.

" in "_site/index.html" @@ -21,8 +21,8 @@ Feature: Post excerpts And I have a _layouts directory And I have a post layout that contains "{{ page.excerpt }}" And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | When I run jekyll Then the _site directory should exist And the _site/2007 directory should exist @@ -38,8 +38,8 @@ Feature: Post excerpts And I have a _layouts directory And I have a post layout that contains "{{ page.excerpt }}" And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | When I run jekyll Then the _site directory should exist And the _site/2007 directory should exist diff --git a/features/site_configuration.feature b/features/site_configuration.feature index a7c59b00..9305bdb1 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -116,9 +116,9 @@ Feature: Site configuration | future | false | And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | - | entry2 | 2020-01-31 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | + | entry2 | 2020-01-31 | post | content for entry2. | When I run jekyll Then the _site directory should exist And I should see "Page Layout: 1 on 2010-01-01" in "_site/index.html" @@ -136,9 +136,9 @@ Feature: Site configuration | future | true | And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | - | entry2 | 2020-01-31 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | + | entry2 | 2020-01-31 | post | content for entry2. | When I run jekyll Then the _site directory should exist And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html" @@ -191,10 +191,10 @@ Feature: Site configuration | key | value | | limit_posts | 2 | And I have the following posts: - | title | date | content | - | Apples | 2009-03-27 | An article about apples | - | Oranges | 2009-04-01 | An article about oranges | - | Bananas | 2009-04-05 | An article about bananas | + | title | date | content | + | Apples | 2009-03-27 | An article about apples | + | Oranges | 2009-04-01 | An article about oranges | + | Bananas | 2009-04-05 | An article about bananas | When I run jekyll Then the _site directory should exist And the "_site/2009/04/05/bananas.html" file should exist @@ -225,9 +225,9 @@ Feature: Site configuration | layouts | _theme | And I have a _posts directory And I have the following posts: - | title | date | layout | content | - | entry1 | 2007-12-31 | post | content for entry1. | - | entry2 | 2020-01-31 | post | content for entry2. | + | title | date | layout | content | + | entry1 | 2007-12-31 | post | content for entry1. | + | entry2 | 2020-01-31 | post | content for entry2. | When I run jekyll Then the _site directory should exist And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html" @@ -245,9 +245,9 @@ Feature: Site configuration Scenario: Add an empty whitelist to restrict all gems Given I have an "index.html" file that contains "Whatever" And I have a configuration file with: - | key | value | + | key | value | | gems | [jekyll_test_plugin] | - | whitelist | [] | + | whitelist | [] | When I run jekyll in safe mode Then the _site directory should exist And I should see "Whatever" in "_site/index.html" @@ -256,9 +256,9 @@ Feature: Site configuration Scenario: Add a whitelist to restrict some gems but allow others Given I have an "index.html" file that contains "Whatever" And I have a configuration file with: - | key | value | + | key | value | | gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] | - | whitelist | [jekyll_test_plugin] | + | whitelist | [jekyll_test_plugin] | When I run jekyll in safe mode Then the _site directory should exist And I should see "Whatever" in "_site/index.html" diff --git a/features/site_data.feature b/features/site_data.feature index faa266b7..029b36ff 100644 --- a/features/site_data.feature +++ b/features/site_data.feature @@ -17,9 +17,9 @@ Feature: Site data And I should see "Source path: " in "_site/" Examples: - | dir | path | - | . | index.html | - | dir | dir/about.html | + | dir | path | + | . | index.html | + | dir | dir/about.html | | dir/nested | dir/nested/page.html | Scenario: Override page.path @@ -38,10 +38,10 @@ Feature: Site data Given I have a _posts directory And I have an "index.html" page that contains "{{ site.posts.first.title }}: {{ site.posts.first.url }}" And I have the following posts: - | title | date | content | - | First Post | 2009-03-25 | My First Post | - | Second Post | 2009-03-26 | My Second Post | - | Third Post | 2009-03-27 | My Third Post | + | title | date | content | + | First Post | 2009-03-25 | My First Post | + | Second Post | 2009-03-26 | My Second Post | + | Third Post | 2009-03-27 | My Third Post | When I run jekyll Then the _site directory should exist And I should see "Third Post: /2009/03/27/third-post.html" in "_site/index.html" @@ -50,10 +50,10 @@ Feature: Site data Given I have a _posts directory And I have an "index.html" page that contains "{% for post in site.posts %} {{ post.title }} {% endfor %}" And I have the following posts: - | title | date | content | - | First Post | 2009-03-25 | My First Post | - | Second Post | 2009-03-26 | My Second Post | - | Third Post | 2009-03-27 | My Third Post | + | title | date | content | + | First Post | 2009-03-25 | My First Post | + | Second Post | 2009-03-26 | My Second Post | + | Third Post | 2009-03-27 | My Third Post | When I run jekyll Then the _site directory should exist And I should see "Third Post Second Post First Post" in "_site/index.html" @@ -62,7 +62,7 @@ Feature: Site data Given I have a _posts directory And I have an "index.html" page that contains "{% for post in site.categories.code %} {{ post.title }} {% endfor %}" And I have the following posts: - | title | date | category | content | + | title | date | category | content | | Awesome Hack | 2009-03-26 | code | puts 'Hello World' | | Delicious Beer | 2009-03-26 | food | 1) Yuengling | When I run jekyll @@ -73,8 +73,8 @@ Feature: Site data Given I have a _posts directory And I have an "index.html" page that contains "{% for post in site.tags.beer %} {{ post.content }} {% endfor %}" And I have the following posts: - | title | date | tag | content | - | Delicious Beer | 2009-03-26 | beer | 1) Yuengling | + | title | date | tag | content | + | Delicious Beer | 2009-03-26 | beer | 1) Yuengling | When I run jekyll Then the _site directory should exist And I should see "Yuengling" in "_site/index.html" @@ -83,7 +83,7 @@ Feature: Site data Given I have a _posts directory And I have an "index.html" page that contains "{% for post in site.posts %}{{ post.title }}:{{ post.previous.title}},{{ post.next.title}} {% endfor %}" And I have the following posts: - | title | date | content | + | title | date | content | | first | 2009-02-26 | first | | A | 2009-03-26 | A | | B | 2009-03-26 | B | From 6eef4b65ff8873a56fcb2831bcd675172d35afb9 Mon Sep 17 00:00:00 2001 From: Slava Pavlutin Date: Sat, 1 Mar 2014 23:32:30 +0400 Subject: [PATCH 2/2] Remove redundant whitespace in a Cucumber feature --- features/embed_filters.feature | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features/embed_filters.feature b/features/embed_filters.feature index e5f92d52..ebe7262f 100644 --- a/features/embed_filters.feature +++ b/features/embed_filters.feature @@ -18,8 +18,9 @@ Feature: Embed filters Given I have a _posts directory And I have a _layouts directory And I have the following post: - | title | date | layout | content | - | Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. | + | title | date | layout | content | + | Star & Wars | 2009-03-27 | default | These aren't the droids you're looking for. | + And I have a default layout that contains "{{ page.title | xml_escape }}" When I run jekyll