Sha256: 46811bb3bd7e51f0bee44f69ee7312c4c430fafd3c05db14f324cd22a1acd1de

Contents?: true

Size: 485 Bytes

Versions: 2

Compression:

Stored size: 485 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::Repos" instance
    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

2 entries across 2 versions & 1 rubygems

Version Path
github_api-0.5.0 features/error_codes.feature
github_api-0.5.0.rc1 features/error_codes.feature