Sha256: eec399f53445c79c05515d787b1dda41c53523da81ef1b717e90eda3e539be1e

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 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
    Given I want to list resources
      And I pass the following request options:
        | user          |
        | peter-murach  |
    When I make request within a cassette named "gists/gists/user_all"
    Then the response status should be 200
      And the response type should be JSON

  Scenario: Lists all public gists
    Given I want to list resources
    When I make request within a cassette named "gists/gists/public_all"
    Then the response status should be 200
      And the response type should be JSON

  Scenario: Gets a single gist
    Given I want to get resource with the following params:
      | gist_id |
      | 1738161 |
    When I make request within a cassette named "gists/gist"
    Then the response status should be 200
      And the response type should be JSON

  Scenario: Check if gist is starred
    Given I want to starred? resource with the following params:
      | gist_id |
      | 1738161 |
    When I make request within a cassette named "gists/starred"
    Then the response should equal false

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_api-0.5.3 features/gists.feature
github_api-0.5.2 features/gists.feature