Sha256: ba018f7a922ee8e9a6c0e4e5465b42144cc37c1aebfffffdd274a55edd12ed7f

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

Feature: Github API auto pagination

  The gem permits to auto paginate resources.

  Scenario: Passing auto_pagionation param to instances

    Given I have "Github::Repos" instance
    When I want to list resources
      And I pass the following request options:
        | user   | per_page | auto_pagination |
        | wycats | 45       | true            |
      And I make request within a cassette named "auto_pagination/repos/list"
    Then the response status should be 200
      And the response type should be JSON
      And the response should have 134 items

  Scenario: Passing auto_pagionation param to instances

    Given I have "Github::Repos" instance
      And I pass the following request options:
        | user   | per_page | auto_pagination |
        | wycats | 100       | true            |
    When I want to list resources
      And I make request within a cassette named "auto_pagination/repos/global_list"
    Then the response status should be 200
      And the response type should be JSON
      And the response should have 134 items

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
github_api-0.9.5 features/auto_pagination.feature
github_api-0.9.4 features/auto_pagination.feature
github_api-0.9.3 features/auto_pagination.feature
github_api-0.9.2 features/auto_pagination.feature