Sha256: 3498d3343897e99ac1325767329dbb4cf21820c3fcfd1f503c6b9b58a9993fda
Contents?: true
Size: 1.52 KB
Versions: 4
Compression:
Stored size: 1.52 KB
Contents
Feature: Github API auto pagination The gem permits to auto paginate resources. Scenario: Passing auto_pagionation param to request Given I have "Github::Client::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 150 items Scenario: Passing auto_pagionation param to instances Given I have "Github::Client::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 150 items Scenario: Paginating single resource Given I have "Github::Client::Repos" instance And I pass the following request options: | user | repo | auto_pagination | | peter-murach | tty | true | When I want to get resource And I make request within a cassette named "auto_pagination/repos/get" Then the response status should be 200 And the response type should be JSON And the response body name should be tty
Version data entries
4 entries across 4 versions & 1 rubygems