Sha256: e61687c4840634b9047218445fc6d456902f0ff82ddd545214461924e736071a

Contents?: true

Size: 1.55 KB

Versions: 27

Compression:

Stored size: 1.55 KB

Contents

Feature: Watching API

  Background:
    Given I have "Github::Activity::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 "activity/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 "activity/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 "activity/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 "activity/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 "activity/watching/unwatch"
    Then the response status should be 204

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
github_api-0.8.6 features/activity/watching.feature
github_api-0.8.5 features/activity/watching.feature
github_api-0.8.4 features/activity/watching.feature
github_api-0.8.3 features/activity/watching.feature
github_api-0.8.2 features/activity/watching.feature
github_api-0.8.1 features/activity/watching.feature
github_api-0.8.0 features/activity/watching.feature