Sha256: 89d41275ddf2ec0577a38832ddb9d2df87c0afac34f05bf6643a9fd7f8f4df2f

Contents?: true

Size: 1.53 KB

Versions: 3

Compression:

Stored size: 1.53 KB

Contents

Feature: Watching API

  Background:
    Given I have "Github::Repos::Watching" instance

  Scenario: List

    Given I want to list resources with the following params:
      | user         | repo   |
      | peter-murach | github |
    When I make request within a cassette named "repos/watching/list"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Watched

    Given I want to watched resources
      And I pass the following request options:
      | user   |
      | wycats |
    When I make request within a cassette named "repos/watching/watched"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Watching

    Given I want to watching? resource with the following params:
      | user         | repo   |
      | peter-murach | github |
    When I make request within a cassette named "repos/watching/watching"
    Then the response should be false

  Scenario: Watch

    Given I want to watch resource with the following params:
      | user         | repo   |
      | peter-murach | github |
    When I make request within a cassette named "repos/watching/watch"
    Then the response status should be 204

  Scenario: Unwatch

    Given I want to unwatch resource with the following params:
      | user         | repo   |
      | peter-murach | github |
    When I make request within a cassette named "repos/watching/unwatch"
    Then the response status should be 204

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_api-0.7.2 features/repos/watching.feature
github_api-0.7.1 features/repos/watching.feature
github_api-0.7.0 features/repos/watching.feature