Sha256: af050b049f7b2c7fa49fff1cdbd5833ada793c882ac5c4a2d154109b5cde6626

Contents?: true

Size: 1.16 KB

Versions: 31

Compression:

Stored size: 1.16 KB

Contents

Feature: Contents API

  Background:
    Given I have "Github::Repos::Contents" instance

  Scenario: Readme

    Given I want readme resource with the following params:
      | user         | repo   |
      | peter-murach | github |
    When I make request within a cassette named "repos/contents/readme"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Get file contents

    Given I want get resource with the following params:
      | user         | repo   | path      |
      | peter-murach | github | README.md |
    When I make request within a cassette named "repos/contents/get"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Archive

    Given I want archive resource with the following params:
      | user         | repo   |
      | peter-murach | github |
    And I pass the following request options:
      | archive_format | ref    |
      | tarball        | master |
    When I make request within a cassette named "repos/contents/archive"
    Then the response status should be 302

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
github_api-0.10.1 features/repos/contents.feature
github_api-0.10.0 features/repos/contents.feature
github_api-0.9.7 features/repos/contents.feature
github_api-0.9.6 features/repos/contents.feature
github_api-0.9.5 features/repos/contents.feature
github_api-0.9.4 features/repos/contents.feature
github_api-0.9.3 features/repos/contents.feature
github_api-0.9.2 features/repos/contents.feature
github_api-0.9.1 features/repos/contents.feature
github_api-0.9.0 features/repos/contents.feature
github_api-0.8.11 features/repos/contents.feature
github_api-0.8.10 features/repos/contents.feature
github_api-0.8.9 features/repos/contents.feature
github_api-0.8.8 features/repos/contents.feature
github_api-0.8.7 features/repos/contents.feature
github_api-0.8.6 features/repos/contents.feature
github_api-0.8.5 features/repos/contents.feature
github_api-0.8.4 features/repos/contents.feature
github_api-0.8.3 features/repos/contents.feature
github_api-0.8.2 features/repos/contents.feature