Sha256: 4f4366d98f6b73febe890050d98e0d4142737d5e6b6f6bc47baf2fb7f1c57c55

Contents?: true

Size: 1.72 KB

Versions: 4

Compression:

Stored size: 1.72 KB

Contents

Feature: Deployments API

  Background:
    Given I have "Github::Client::Repos::Deployments" instance

  Scenario: List

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

  Scenario: Create

    Given I want to create resource with the following params:
      | owner | repo            |
      | murek | github_api_test |
      And I pass the following request options:
        | ref    |
        | master |
    When I make request within a cassette named "repos/deployments/create"
    Then the response status should be 201
      And the response type should be JSON
      And the response should not be empty

  Scenario: Create status

    Given I want to create_status resource with the following params:
      | owner | repo            | id    |
      | murek | github_api_test | 24401 |
      And I pass the following request options:
        | state   |
        | success |
    When I make request within a cassette named "repos/deployments/create_status"
    Then the response status should be 201
      And the response type should be JSON
      And the response should not be empty

  Scenario: List statuses

    Given I want to statuses resource with the following params:
      | user  | repo            | id    |
      | murek | github_api_test | 24401 |
    When I make request within a cassette named "repos/deployments/list_statuses"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
github_api-0.12.3 features/repos/deployments.feature
github_api-0.12.2 features/repos/deployments.feature
github_api-0.12.1 features/repos/deployments.feature
github_api-0.12.0 features/repos/deployments.feature