Sha256: 0224a8b8f01a884b34df7ce41e09bc7c7c9922d137bf798cdde1a6c1671431e8

Contents?: true

Size: 1.55 KB

Versions: 4

Compression:

Stored size: 1.55 KB

Contents

Feature: Starring API

  Background:
    Given I have "Github::Client::Activity::Starring" 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/starring/list"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Starred

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

  Scenario: Starring

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

  Scenario: Star

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

  Scenario: Unstar

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
github_api-0.12.3 features/activity/starring.feature
github_api-0.12.2 features/activity/starring.feature
github_api-0.12.1 features/activity/starring.feature
github_api-0.12.0 features/activity/starring.feature