Sha256: 4b48734ff6723de50e04e593a1ff78136f8c2790736d4b2cbb7f01a9bd180f87

Contents?: true

Size: 1.54 KB

Versions: 38

Compression:

Stored size: 1.54 KB

Contents

Feature: Accessing Users Emails API

  In order to interact with github user emails
  GithubAPI gem
  Should return the expected results depending on passed parameters

  Background:
    Given I have "Github::Users::Emails" instance

  Scenario: Lists all emails for the authenticated user

    Given I want to list resources
    When I make request within a cassette named "users/emails/all"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: Add email addresses for the authenticated user

    Given I want to add resource with the following params:
      | email1              | email2            |
      | octocat@example.com | terry@example.com |
    When I make request within a cassette named "users/emails/add"
    Then the response status should be 201
      And the response type should be JSON
      And the response should have 3 items
      And the response should contain octocat@example.com
      And the response should contain terry@example.com

  Scenario: Remove email addresses for the authenticated user

    Given I want to add resource with the following params:
      | email1              | email2            |
      | octocat@example.com | terry@example.com |
    And I make request within a cassette named "users/emails/add"
    And I want to delete resource with the following params:
      | email               |
      | octocat@example.com |
    When I make request within a cassette named "users/emails/delete"
    Then the response status should be 204

Version data entries

38 entries across 38 versions & 1 rubygems

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