Sha256: d4b420c4ecf1bdb512ac27c13d321a6ac401424079c8b045b1813d547385dab1

Contents?: true

Size: 1.27 KB

Versions: 23

Compression:

Stored size: 1.27 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" page that contains "{{ paginator.posts.size }}"
    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 play3. |
      | Wargames4 | 6/27/2009 | default | The only winning move is not to play4. |
    When I run jekyll
    Then the _site/page<exist> directory should exist
    And the "_site/page<exist>/index.html" file should exist
    And I should see "<posts>" in "_site/page<exist>/index.html"
    And the "_site/page<not_exist>/index.html" file should not exist
    
    Examples:
      | num | exist | posts | not_exist |
      | 1   | 4     | 1     | 5         |
      | 2   | 2     | 2     | 3         |
      | 3   | 2     | 1     | 3         |

Version data entries

23 entries across 23 versions & 10 rubygems

Version Path
jekyll-reloaded-0.12.2 features/pagination.feature
jekyll-reloaded-0.12.1 features/pagination.feature
jekyll-reloaded-0.12 features/pagination.feature
spinto-jekyll-0.11.2.3 features/pagination.feature
spinto-jekyll-0.11.2.2 features/pagination.feature
spinto-jekyll-0.11.2.1 features/pagination.feature
jekyll-0.11.2 features/pagination.feature
vanity-1.7.1 vendor/ruby/1.9.1/gems/jekyll-0.11.0/features/pagination.feature
jekyll-0.11.0 features/pagination.feature
fagiani-jekyll-0.10.1 features/pagination.feature
jekyll-0.10.0 features/pagination.feature
jekyll-0.9.0 features/pagination.feature
jekyll-0.8.0 features/pagination.feature
realityforge-jekyll-0.7.1-java features/pagination.feature
jekyll-0.7.0 features/pagination.feature
cartera-jekyll-0.6.2 features/pagination.feature
jekyll-0.6.2 features/pagination.feature
jekyll-0.6.1 features/pagination.feature
jekyll-0.6.0 features/pagination.feature
blackwinter-jekyll-0.5.7 features/pagination.feature