features/create_sites.feature in jekyll-1.0.2 vs features/create_sites.feature in jekyll-1.0.3
- old
+ new
@@ -11,11 +11,11 @@
Scenario: Basic site with a post
Given I have a _posts directory
And I have the following post:
| title | date | content |
- | Hackers | 3/27/2009 | My First Exploit |
+ | Hackers | 2009-03-27 | My First Exploit |
When I run jekyll
Then the _site directory should exist
And I should see "My First Exploit" in "_site/2009/03/27/hackers.html"
Scenario: Basic site with layout and a page
@@ -29,11 +29,11 @@
Scenario: Basic site with layout and a post
Given I have a _layouts directory
And I have a _posts directory
And I have the following posts:
| title | date | layout | content |
- | Wargames | 3/27/2009 | default | The only winning move is not to play. |
+ | 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
Then the _site directory should exist
And I should see "Post Layout: <p>The only winning move is not to play.</p>" in "_site/2009/03/27/wargames.html"
@@ -47,17 +47,17 @@
And I have an "about.html" file that contains "No replacement {{ site.posts.size }}"
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 | 3/27/2009 | post | content for entry1. |
- | entry2 | 4/27/2009 | post | content for entry2. |
+ | 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 | 5/27/2009 | post | content for entry3. |
- | entry4 | 6/27/2009 | post | content for entry4. |
+ | 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"
And I should see "No replacement \{\{ site.posts.size \}\}" in "_site/about.html"
And I should see "" in "_site/another_file"
@@ -97,11 +97,11 @@
Given I have an "index.html" page that contains "URL: {% post_url 2020-01-31-entry2 %}"
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 | 12/31/2007 | post | content for entry1. |
- | entry2 | 01/31/2020 | post | content for entry2. |
+ | 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"
Scenario: Basic site with whitelisted dotfile