Sha256: 95a2f54ae95e7978060683f51b55aa409d55c619db96c2ef95c303ca847d4374

Contents?: true

Size: 1.53 KB

Versions: 3

Compression:

Stored size: 1.53 KB

Contents

Feature: Starring API

  Background:
    Given I have "Github::Repos::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 "repos/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 "repos/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 "repos/starring/starring"
    Then the response should be false

  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 "repos/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 "repos/starring/unstar"
    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/starring.feature
github_api-0.7.1 features/repos/starring.feature
github_api-0.7.0 features/repos/starring.feature