Feature for the last fix
This commit is contained in:
parent
a116eaf0ee
commit
937efcf8b8
|
@ -3,8 +3,8 @@ Feature: Site pagination
|
||||||
As a blog's user
|
As a blog's user
|
||||||
I want divide the posts in several pages
|
I want divide the posts in several pages
|
||||||
|
|
||||||
Scenario: Create pages
|
Scenario Outline: Paginate with N posts per page
|
||||||
Given I have a configuration file with "paginate" set to "1"
|
Given I have a configuration file with "paginate" set to "<num>"
|
||||||
And I have a _layouts directory
|
And I have a _layouts directory
|
||||||
And I have an "index.html" file that contains "Basic Site"
|
And I have an "index.html" file that contains "Basic Site"
|
||||||
And I have a _posts directory
|
And I have a _posts directory
|
||||||
|
@ -12,6 +12,12 @@ Feature: Site pagination
|
||||||
| title | date | layout | content |
|
| title | date | layout | content |
|
||||||
| Wargames | 3/27/2009 | default | The only winning move is not to play. |
|
| Wargames | 3/27/2009 | default | The only winning move is not to play. |
|
||||||
| Wargames2 | 4/27/2009 | default | The only winning move is not to play2. |
|
| Wargames2 | 4/27/2009 | default | The only winning move is not to play2. |
|
||||||
|
| Wargames3 | 5/27/2009 | default | The only winning move is not to play2. |
|
||||||
When I run jekyll
|
When I run jekyll
|
||||||
Then the _site/page2 directory should exist
|
Then the _site/page2 directory should exist
|
||||||
And the _site/page2/index.html file should exist
|
And the _site/page2/index.html file should exist
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
| num |
|
||||||
|
| 1 |
|
||||||
|
| 2 |
|
||||||
|
|
Loading…
Reference in New Issue