Sha256: 6505f2ac942653324ab8aa8286e2a060d1ec14d30f46310ba44a96c475d0d6ea

Contents?: true

Size: 1.7 KB

Versions: 24

Compression:

Stored size: 1.7 KB

Contents

Feature: Site pagination
  In order to paginate my blog
  As a blog's user
  I want divide the posts in several pages
  
  Scenario Outline: Paginate with N posts per page
    Given I have a configuration file with "paginate" set to "<num>"
    And I have a _layouts directory
    And I have an "index.html" file that contains "Basic Site"
    And I have a _posts directory
    And I have the following post:
      | title     | date      | layout  | content                                |
      | 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. |
      | Wargames3 | 5/27/2009 | default | The only winning move is not to play2. |
    When I run jekyll
    Then the _site/page2 directory should exist
    And the _site/page2/index.html file should exist

    Examples:
      | num |
      | 1   |
      | 2   |

  Scenario: Correct liquid paginator replacements
    Given I have a configuration file with "paginate" set to "1"
    And I have a _layouts directory
    And I have an "index.html" file that contains "{{ paginator.page }}"
    And I have a _posts directory
    And I have the following post:
      | title     | date      | layout  | content                                |
      | 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. |
    When I run jekyll
    Then the _site/index.html file should exist
    And I should see "1" in "_site/index.html"
    Then the _site/page2 directory should exist
    And the _site/page2/index.html file should exist
    And I should see "2" in "_site/page2/index.html"
    

Version data entries

24 entries across 24 versions & 15 rubygems

Version Path
Chrononaut-hyde-0.1.0 features/pagination.feature
Chrononaut-hyde-0.1.1 features/pagination.feature
codeslinger-jekyll-0.5.2 features/pagination.feature
codeslinger-jekyll-0.5.4 features/pagination.feature
mojombo-jekyll-0.5.2 features/pagination.feature
nirvdrum-jekyll-0.6.0 features/pagination.feature
pol-hyde-0.1.2 features/pagination.feature
pol-hyde-0.1.3 features/pagination.feature
rfelix-jekyll-0.5.4 features/pagination.feature
sixones-jekyll-0.5.2.2 features/pagination.feature
sixones-jekyll-0.5.2 features/pagination.feature
tekin-jekyll-0.5.2 features/pagination.feature
tomafro-jekyll-0.5.2.1 features/pagination.feature
mojombo-jekyll-0.5.4 features/pagination.feature
jberkel-jekyll-0.5.4 features/pagination.feature
nirvdrum-jekyll-0.6.1 features/pagination.feature
naeu-jekyll-0.7.0 features/pagination.feature
nirvdrum-jekyll-0.5.2 features/pagination.feature
tsion-jekyll-0.5.5 features/pagination.feature
indirect-jekyll-0.5.4 features/pagination.feature