diff --git a/features/collections.feature b/features/collections.feature index 451c84d8..6ff41080 100644 --- a/features/collections.feature +++ b/features/collections.feature @@ -7,7 +7,7 @@ Feature: Collections Given I have an "index.html" page that contains "Collections: {{ site.methods }}" And I have fixture collections And I have a configuration file with "collections" set to "['methods']" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Collections: Use `{{ page.title }}` to build a full configuration for use w/Jekyll.\n\nWhatever: {{ page.whatever }}\n`{{ page.title }}` is used to make sure your path is in your source.\nRun your generators! {{ page.layout }}\nCreate dat site.\nRun your generators! {{ page.layout }}" in "_site/index.html" @@ -18,7 +18,7 @@ Feature: Collections | key | value | | collections | ['methods'] | | render | ['methods'] | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Collections: methods" in "_site/index.html" And I should see "
Whatever: foo.bar
" in "_site/methods/configuration.html" @@ -31,7 +31,7 @@ Feature: Collections | key | value | | collections | ['methods'] | | render | ['methods'] | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Collections: methods" in "_site/index.html" And I should see "Run your generators! default
" in "_site/methods/site/generate.html" diff --git a/features/create_sites.feature b/features/create_sites.feature index c84d90f8..18996bfe 100644 --- a/features/create_sites.feature +++ b/features/create_sites.feature @@ -5,14 +5,14 @@ Feature: Create sites Scenario: Blank site Given I do not have a "test_blank" directory - When I call jekyll new with test_blank --blank + When I run jekyll new test_blank --blank Then the test_blank/_layouts directory should exist And the test_blank/_posts directory should exist And the "test_blank/index.html" file should exist Scenario: Basic site Given I have an "index.html" file that contains "Basic Site" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Basic Site" in "_site/index.html" @@ -21,7 +21,7 @@ Feature: Create sites And I have the following post: | title | date | content | | Hackers | 2009-03-27 | My First Exploit | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "My First Exploit" in "_site/2009/03/27/hackers.html" @@ -29,7 +29,7 @@ Feature: Create sites Given I have a _layouts directory And I have an "index.html" page with layout "default" that contains "Basic Site with Layout" And I have a default layout that contains "Page Layout: {{ content }}" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Page Layout: Basic Site with Layout" in "_site/index.html" @@ -40,7 +40,7 @@ Feature: Create sites | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post Layout:The only winning move is not to play.
" in "_site/2009/03/27/wargames.html" @@ -51,7 +51,7 @@ Feature: Create sites | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post Layout:The only winning move is not to play.
" in "_site/2009/03/27/wargames.html" @@ -74,7 +74,7 @@ Feature: Create sites | title | date | layout | content | | entry3 | 2009-05-27 | post | content for entry3. | | entry4 | 2009-06-27 | post | content for entry4. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Page : Site contains 2 pages and 4 posts" in "_site/index.html" And I should see "No replacement \{\{ site.posts.size \}\}" in "_site/about.html" @@ -89,7 +89,7 @@ Feature: Create sites Given I have a _includes directory And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}" And I have an "_includes/about.textile" file that contains "Generated by Jekyll" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html" @@ -98,7 +98,7 @@ Feature: Create sites And I have an "_includes/about.textile" file that contains "Generated by Jekyll" And I have an info directory And I have an "info/index.html" page that contains "Basic Site with subdir include tag: {% include about.textile %}" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Basic Site with subdir include tag: Generated by Jekyll" in "_site/info/index.html" @@ -107,7 +107,7 @@ Feature: Create sites And I have an "_includes/about.textile" file that contains "Generated by {% include jekyll.textile %}" And I have an "_includes/jekyll.textile" file that contains "Jekyll" And I have an "index.html" page that contains "Basic Site with include tag: {% include about.textile %}" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Basic Site with include tag: Generated by Jekyll" in "_site/index.html" @@ -119,24 +119,24 @@ Feature: Create sites | title | date | layout | content | | entry1 | 2007-12-31 | post | content for entry1. | | entry2 | 2020-01-31 | post | content for entry2. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "URL: /2020/01/31/entry2/" in "_site/index.html" Scenario: Basic site with whitelisted dotfile Given I have an ".htaccess" file that contains "SomeDirective" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "SomeDirective" in "_site/.htaccess" Scenario: File was replaced by a directory Given I have a "test" file that contains "some stuff" - When I run jekyll + When I run jekyll build Then the _site directory should exist When I delete the file "test" Given I have a test directory And I have a "test/index.html" file that contains "some other stuff" - When I run jekyll + When I run jekyll build Then the _site/test directory should exist And I should see "some other stuff" in "_site/test/index.html" @@ -145,13 +145,13 @@ Feature: Create sites And I have a "public.html" page with published "true" that contains "Explicitly published page" And I have a "secret.html" page with published "false" that contains "Unpublished page" - When I run jekyll + When I run jekyll build Then the _site directory should exist And the "_site/index.html" file should exist And the "_site/public.html" file should exist But the "_site/secret.html" file should not exist - When I run jekyll with "--unpublished" + When I run jekyll build --unpublished Then the _site directory should exist And the "_site/index.html" file should exist And the "_site/public.html" file should exist diff --git a/features/data.feature b/features/data.feature index 33adfaad..9bfac1ee 100644 --- a/features/data.feature +++ b/features/data.feature @@ -13,7 +13,7 @@ Feature: Data price: 2.5 """ And I have an "index.html" page that contains "{% for product in site.data.products %}{{product.name}}{% endfor %}" - When I run jekyll + When I run jekyll build Then the "_site/index.html" file should exist And I should see "sugar" in "_site/index.html" And I should see "salt" in "_site/index.html" @@ -28,7 +28,7 @@ Feature: Data age: 34 """ And I have an "index.html" page that contains "{% for member in site.data.members %}{{member.name}}{% endfor %}" - When I run jekyll + When I run jekyll build Then the "_site/index.html" file should exist And I should see "Jack" in "_site/index.html" And I should see "Leon" in "_site/index.html" @@ -43,7 +43,7 @@ Feature: Data age: 34 """ And I have an "index.html" page that contains "{% for member in site.data.team_members %}{{member.name}}{% endfor %}" - When I run jekyll + When I run jekyll build Then the "_site/index.html" file should exist And I should see "Jack" in "_site/index.html" And I should see "Leon" in "_site/index.html" @@ -58,7 +58,7 @@ Feature: Data age: 34 """ And I have an "index.html" page that contains "{% for member in site.data %}{{member.name}}{% endfor %}" - When I run jekyll + When I run jekyll build Then the "_site/index.html" file should exist And I should see "Jack" in "_site/index.html" And I should see "Leon" in "_site/index.html" diff --git a/features/drafts.feature b/features/drafts.feature index 2c819658..c55edbb9 100644 --- a/features/drafts.feature +++ b/features/drafts.feature @@ -9,7 +9,7 @@ Feature: Draft Posts And I have the following draft: | title | date | layout | content | | Recipe | 2009-03-27 | default | Not baked yet. | - When I run jekyll with drafts + When I run jekyll build --drafts Then the _site directory should exist And I should see "Not baked yet." in "_site/recipe.html" @@ -20,7 +20,7 @@ Feature: Draft Posts And I have the following draft: | title | date | layout | content | | Recipe | 2009-03-27 | default | Not baked yet. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And the "_site/recipe.html" file should not exist @@ -31,7 +31,7 @@ Feature: Draft Posts And I have the following draft: | title | date | layout | published | content | | Recipe | 2009-03-27 | default | false | Not baked yet. | - When I run jekyll with drafts + When I run jekyll build --drafts Then the _site directory should exist And the "_site/recipe.html" file should not exist @@ -41,6 +41,6 @@ Feature: Draft Posts And I have the following draft: | title | date | layout | content | | Recipe | 2009-03-27 | simple | Post path: {{ page.path }} | - When I run jekyll with drafts + When I run jekyll build --drafts Then the _site directory should exist And I should see "Post path: _drafts/recipe.textile" in "_site/recipe.html" diff --git a/features/embed_filters.feature b/features/embed_filters.feature index ebe7262f..27f5f1df 100644 --- a/features/embed_filters.feature +++ b/features/embed_filters.feature @@ -10,7 +10,7 @@ Feature: Embed filters | 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 + When I run jekyll build Then the _site directory should exist And I should see today's date in "_site/2009/03/27/star-wars.html" @@ -23,7 +23,7 @@ Feature: Embed filters And I have a default layout that contains "{{ page.title | xml_escape }}" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Star & Wars" in "_site/2009/03/27/star-wars.html" @@ -34,7 +34,7 @@ Feature: Embed filters | 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 + When I run jekyll build Then the _site directory should exist And I should see "7" in "_site/2009/03/27/star-wars.html" @@ -45,7 +45,7 @@ Feature: Embed filters | 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 + When I run jekyll build Then the _site directory should exist And I should see "scifi, movies, and force" in "_site/2009/03/27/star-wars.html" @@ -56,7 +56,7 @@ Feature: Embed filters | 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 + When I run jekyll build Then the _site directory should exist And I should see "ByObi-wan
" in "_site/2009/03/27/star-wars.html" @@ -69,7 +69,7 @@ Feature: Embed filters | title | layout | value | content | | Page-2 | default | 6 | Something | And I have a default layout that contains "{{ site.pages | sort:'value' | map:'title' | join:', ' }}" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see exactly "Page-2, Page-1" in "_site/page-1.html" And I should see exactly "Page-2, Page-1" in "_site/page-2.html" diff --git a/features/frontmatter_defaults.feature b/features/frontmatter_defaults.feature index fa9e0a4d..3f2d3cd5 100644 --- a/features/frontmatter_defaults.feature +++ b/features/frontmatter_defaults.feature @@ -11,7 +11,7 @@ Feature: frontmatter defaults And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {layout: "pretty"}}]" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "THIS IS THE LAYOUT:just some post
" in "_site/2013/09/11/default-layout.html" And I should see "THIS IS THE LAYOUT: just some page" in "_site/index.html" @@ -23,7 +23,7 @@ Feature: frontmatter defaults | default data | 2013-09-11 |{{page.custom}}
some special data
info on the webpage
" in "_site/2013/10/14/about.html" And I should see "subfolder:info on the special section
" in "_site/special/2013/10/14/about.html" @@ -61,7 +61,7 @@ Feature: frontmatter defaults | 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: "", type: "post"}, values: {permalink: "/post.html"}}, {scope: {path: "", type: "page"}, values: {permalink: "/page.html"}}, {scope: {path: ""}, values: {permalink: "/perma.html"}}]" - When I run jekyll + When I run jekyll build Then I should see "blabla" in "_site/post.html" And I should see "interesting stuff" in "_site/page.html" But the "_site/perma.html" file should not exist @@ -73,7 +73,7 @@ Feature: frontmatter defaults | override | 2013-10-14 | /frontmatter.html | some guy | a blog by {{page.author}} | And I have an "index.html" page with permalink "override.html" that contains "nothing" And I have a configuration file with "defaults" set to "[{scope: {path: ""}, values: {permalink: "/perma.html", author: "Chris"}}]" - When I run jekyll + When I run jekyll build Then I should see "a blog by some guy" in "_site/frontmatter.html" And I should see "nothing" in "_site/override.html" But the "_site/perma.html" file should not exist diff --git a/features/include_tag.feature b/features/include_tag.feature index bef09e3f..3d2f48c2 100644 --- a/features/include_tag.feature +++ b/features/include_tag.feature @@ -18,7 +18,7 @@ Feature: Include tags | 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 %} | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "\nMy awesome code\n
" in "_site/index.html"
@@ -61,7 +61,7 @@ Feature: Markdown
puts "My awesome string"
```
"""
- When I run jekyll
+ When I run jekyll build
Then the _site directory should exist
And I should see "My awesome string" in "_site/index.html"
And I should see "\nputs "My awesome string"\n
" in "_site/index.html"
diff --git a/features/pagination.feature b/features/pagination.feature
index fdf652a2..21b96b08 100644
--- a/features/pagination.feature
+++ b/features/pagination.feature
@@ -14,7 +14,7 @@ Feature: Site pagination
| 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. |
| Wargames4 | 2009-06-27 | default | The only winning move is not to play4. |
- When I run jekyll
+ When I run jekyll build
Then the _site/pageLuke, I am your father.
" in "_site/2009/03/27/star-wars.html" @@ -66,7 +66,7 @@ Feature: Post data | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html" @@ -77,7 +77,7 @@ Feature: Post data | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post tags: twist" in "_site/2009/05/18/star-wars.html" @@ -90,7 +90,7 @@ Feature: Post data | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html" @@ -103,7 +103,7 @@ Feature: Post data | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html" @@ -114,7 +114,7 @@ Feature: Post data | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html" @@ -125,7 +125,7 @@ Feature: Post data | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html" @@ -136,7 +136,7 @@ Feature: Post data | 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 + When I run jekyll build Then the _site directory should exist And I should see "Post category: movies" in "_site/movies/2009/03/27/star-wars.html" @@ -148,7 +148,7 @@ Feature: Post data | 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 }}" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2009/03/27/star-wars.html" And I should see "Post categories: scifi and movies" in "_site/scifi/movies/2013/03/17/star-trek.html" @@ -158,7 +158,7 @@ Feature: Post data And I have the following post in "content for entry1.
" in "_site/index.html" @@ -23,7 +23,7 @@ Feature: Post excerpts And I have the following posts: | title | date | layout | content | | entry1 | 2007-12-31 | post | content for entry1. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And the _site/2007 directory should exist And the _site/2007/12 directory should exist @@ -40,7 +40,7 @@ Feature: Post excerpts And I have the following posts: | title | date | layout | content | | entry1 | 2007-12-31 | post | content for entry1. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And the _site/2007 directory should exist And the _site/2007/12 directory should exist diff --git a/features/site_configuration.feature b/features/site_configuration.feature index 9305bdb1..e0a50136 100644 --- a/features/site_configuration.feature +++ b/features/site_configuration.feature @@ -7,14 +7,14 @@ Feature: Site configuration Given I have a blank site in "_sourcedir" And I have an "_sourcedir/index.html" file that contains "Changing source directory" And I have a configuration file with "source" set to "_sourcedir" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Changing source directory" in "_site/index.html" Scenario: Change destination directory Given I have an "index.html" file that contains "Changing destination directory" And I have a configuration file with "destination" set to "_mysite" - When I run jekyll + When I run jekyll build Then the _mysite directory should exist And I should see "Changing destination directory" in "_mysite/index.html" @@ -25,7 +25,7 @@ Feature: Site configuration | key | value | | source |content for entry1.
" in "_site/2007/12/31/entry1.html" @@ -139,7 +139,7 @@ Feature: Site configuration | title | date | layout | content | | entry1 | 2007-12-31 | post | content for entry1. | | entry2 | 2020-01-31 | post | content for entry2. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html" And I should see "Post Layout:content for entry1.
" in "_site/2007/12/31/entry1.html" @@ -158,7 +158,7 @@ Feature: Site configuration | title | date | layout | content | | entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. | | entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Page Layout: 2" in "_site/index.html" And I should see "Post Layout:content for entry1.
built at 2013-04-09T23:22:00-04:00" in "_site/2013/04/09/entry1.html" @@ -177,7 +177,7 @@ Feature: Site configuration | title | date | layout | content | | entry1 | 2013-04-09 23:22 -0400 | post | content for entry1. | | entry2 | 2013-04-10 03:14 -0400 | post | content for entry2. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Page Layout: 2" in "_site/index.html" And the "_site/2013/04/10/entry1.html" file should exist @@ -195,7 +195,7 @@ Feature: Site configuration | 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 + When I run jekyll build Then the _site directory should exist And the "_site/2009/04/05/bananas.html" file should exist And the "_site/2009/04/01/oranges.html" file should exist @@ -208,7 +208,7 @@ Feature: Site configuration | value | | .gitignore | | .foo | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see ".DS_Store" in "_site/.gitignore" And the "_site/.htaccess" file should not exist @@ -228,7 +228,7 @@ Feature: Site configuration | title | date | layout | content | | entry1 | 2007-12-31 | post | content for entry1. | | entry2 | 2020-01-31 | post | content for entry2. | - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Page Layout: 2 on 2010-01-01" in "_site/index.html" And I should see "Post Layout:content for entry1.
" in "_site/2007/12/31/entry1.html" @@ -237,7 +237,7 @@ Feature: Site configuration Scenario: Add a gem-based plugin Given I have an "index.html" file that contains "Whatever" And I have a configuration file with "gems" set to "[jekyll_test_plugin]" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Whatever" in "_site/index.html" And I should see "this is a test" in "_site/test.txt" @@ -248,7 +248,7 @@ Feature: Site configuration | key | value | | gems | [jekyll_test_plugin] | | whitelist | [] | - When I run jekyll in safe mode + When I run jekyll build --safe Then the _site directory should exist And I should see "Whatever" in "_site/index.html" And the "_site/test.txt" file should not exist @@ -259,7 +259,7 @@ Feature: Site configuration | key | value | | gems | [jekyll_test_plugin, jekyll_test_plugin_malicious] | | whitelist | [jekyll_test_plugin] | - When I run jekyll in safe mode + When I run jekyll build --safe Then the _site directory should exist And I should see "Whatever" in "_site/index.html" And the "_site/test.txt" file should exist diff --git a/features/site_data.feature b/features/site_data.feature index 029b36ff..a7fadf34 100644 --- a/features/site_data.feature +++ b/features/site_data.feature @@ -5,14 +5,14 @@ Feature: Site data Scenario: Use page variable in a page Given I have an "contact.html" page with title "Contact" that contains "{{ page.title }}: email@example.com" - When I run jekyll + When I run jekyll build Then the _site directory should exist And I should see "Contact: email@example.com" in "_site/contact.html" Scenario Outline: Use page.path variable in a page Given I have a