Sha256: f71ca1683f585ff2a93a3bc56736f772365636017b49a575f61f9b7dd8f6460e

Contents?: true

Size: 1.94 KB

Versions: 39

Compression:

Stored size: 1.94 KB

Contents

Feature: Accessing GitData References API

  In order to interact with github git data references
  GithubAPI gem
  Should return the expected results depending on passed parameters

  Background:
    Given I have "Github::GitData::References" instance

  Scenario: Lists all references on a repository
    Given I want to list resources with the following params:
      | user   | repo |
      | wycats | thor |
    When I make request within a cassette named "git_data/references/all"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Lists all references on a repository scoped by branch
    Given I want to list resources with the following params:
      | user   | repo |
      | wycats | thor |
    And I pass the following request options:
      | ref  |
      | tags |
    When I make request within a cassette named "git_data/references/all_tags"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Gets a single reference
    Given I want to get resource with the following params:
      | user   | repo | ref            |
      | wycats | thor | heads/gh-pages |
    When I make request within a cassette named "git_data/references/one"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

#   Scenario: Create a reference
#     Given I want to create resource with the following params:
#       | user  | repo            |
#       | murek | github_api_test |
#     And I pass the following request options:
#       | ref               | sha                                      |
#       | refs/heads/master | 827efc6d56897b048c772eb4087f854f46256132 |
#     When I make request within a cassette named "git_data/references/create"
#     Then the response should be "200"
#       And the response type should be "JSON"

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
github_api-0.8.6 features/git_data/references.feature
github_api-0.8.5 features/git_data/references.feature
github_api-0.8.4 features/git_data/references.feature
github_api-0.8.3 features/git_data/references.feature
github_api-0.8.2 features/git_data/references.feature
github_api-0.8.1 features/git_data/references.feature
github_api-0.8.0 features/git_data/references.feature
github_api-0.7.2 features/git_data/references.feature
github_api-0.7.1 features/git_data/references.feature
github_api-0.7.0 features/git_data/references.feature
github_api-0.6.5 features/git_data/references.feature
github_api-0.6.4 features/git_data/references.feature
github_api-0.6.3 features/git_data/references.feature
github_api-0.6.2 features/git_data/references.feature
github_api-0.6.1 features/git_data/references.feature
github_api-0.6.0 features/git_data/references.feature
github_api-0.5.4 features/git_data/references.feature
github_api-0.5.3 features/git_data/references.feature
github_api-0.5.2 features/git_data/references.feature