Sha256: cb6ec3c76157a8d28320057c04e00581a1b8bd2294205c3ed7f2e27a2187ee86

Contents?: true

Size: 1.93 KB

Versions: 1

Compression:

Stored size: 1.93 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 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 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 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

1 entries across 1 versions & 1 rubygems

Version Path
github_api-0.5.1 features/git_data/references.feature