Sha256: 687109bda7fcde6266b333c6bbc5ecb7cab8bbb30acbf521e72b4633f93f85d7

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

Feature: Accessing Gists Main API
  In order to interact with github gists
  GithubAPI gem
  Should return the expected results depending on passed parameters

  Background:
    Given I have "Github::Gists" instance

  Scenario: Lists all user's gists
    When I am looking for "gists" with the following params:
      | user          |
      | peter-murach  |
    And I make request within a cassette named "gists/gists/user_all"
    Then the response should be "200"
    And the response type should be "JSON"

  Scenario: Lists all public gists
    When I am looking for "gists" with the following params:
      | user |
      | nil  |
    And I make request within a cassette named "gists/gists/public_all"
    Then the response should be "200"
    And the response type should be "JSON"

  Scenario: Gets a single gist
    When I am looking for "gist" with the following params:
      | gist_id |
      | 1738161 |
    And I make request within a cassette named "gists/gist"
    Then the response should be "200"
    And the response type should be "JSON"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
github_api-0.4.11 features/gists.feature
github_api-0.4.10 features/gists.feature
github_api-0.4.9 features/gists.feature
github_api-0.4.8 features/gists.feature
github_api-0.4.7 features/gists.feature
github_api-0.4.6 features/gists.feature
github_api-0.4.5 features/gists.feature
github_api-0.4.4 features/gists.feature
github_api-0.4.3 features/gists.feature