Sha256: 3db2ab5fc706087b479a36944626d48f367c2b5864374ccef52a14865a13f637

Contents?: true

Size: 521 Bytes

Versions: 4

Compression:

Stored size: 521 Bytes

Contents

Feature: Handles HTTP error codes

  In order to handle error cases accordingly
  As a developer
  I want to be informed of non-successful responses

  Scenario: A response of '401 - Unauthorised access'
    Given I have "Github::Client::Repos" instance
    And I am not authorized
    When I want to create resource
      And I pass the following request options:
        | name       |
        | basic_auth |
    Then request should fail with "Github::Error::Unauthorized" within a cassette named "errors/repos/create"

Version data entries

4 entries across 4 versions & 1 rubygems

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