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.11.3 features/users/emails.feature
github_api-0.11.2 features/users/emails.feature
github_api-0.11.1 features/users/emails.feature
github_api-0.11.0 features/users/emails.feature
github_api-0.10.2 features/users/emails.feature
github_api-0.10.1 features/users/emails.feature
github_api-0.10.0 features/users/emails.feature
github_api-0.9.7 features/users/emails.feature
github_api-0.9.6 features/users/emails.feature
github_api-0.9.5 features/users/emails.feature
github_api-0.9.4 features/users/emails.feature
github_api-0.9.3 features/users/emails.feature
github_api-0.9.2 features/users/emails.feature
github_api-0.9.1 features/users/emails.feature
github_api-0.9.0 features/users/emails.feature
github_api-0.8.11 features/users/emails.feature
github_api-0.8.10 features/users/emails.feature
github_api-0.8.9 features/users/emails.feature
github_api-0.8.8 features/users/emails.feature
github_api-0.8.7 features/users/emails.feature