Sha256: bce4add66c6a83bee1c36c1711793e3a78da0bd4e34d0af1b12abe2a82b0a8f2

Contents?: true

Size: 1.81 KB

Versions: 18

Compression:

Stored size: 1.81 KB

Contents

Feature: Members API

  Background:
    Given I have "Github::Orgs::Members" instance

  Scenario: List

    Given I want to list resources with the following params:
      | org   |
      | rails |
    When I make request within a cassette named "orgs/members/list"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

  Scenario: List Public

    Given I want to list resources with the following params:
      | org   |
      | rails |
    And I pass the following request options:
      | public |
      | true   |
    When I make request within a cassette named "orgs/members/list_public"
    Then the response status should be 200
      And the response type should be JSON
      And the response should not be empty

#   Scenario: Check if member of organization (302)
# 
#     Given I want to member? resource with the following params:
#       | org   | member |
#       | rails | drogus |
#     When I make request within a cassette named "orgs/members/member_false"
#     Then the response should be false

  Scenario: Check if public member of organization (404)

    Given I want to member? resource with the following params:
      | org   | member       |
      | rails | peter-murach |
    And I pass the following request options:
      | public |
      | true   |
    When I make request within a cassette named "orgs/members/member_public_false"
    Then the response should be false

  Scenario: Check if public member of organization (204)

    Given I want to member? resource with the following params:
      | org   | member |
      | rails | drogus |
    And I pass the following request options:
      | public |
      | true   |
    When I make request within a cassette named "orgs/members/member_public_true"
    Then the response should be true

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
github_api-0.11.3 features/orgs/members.feature
github_api-0.11.2 features/orgs/members.feature
github_api-0.11.1 features/orgs/members.feature
github_api-0.11.0 features/orgs/members.feature
github_api-0.10.2 features/orgs/members.feature
github_api-0.10.1 features/orgs/members.feature
github_api-0.10.0 features/orgs/members.feature
github_api-0.9.7 features/orgs/members.feature
github_api-0.9.6 features/orgs/members.feature
github_api-0.9.5 features/orgs/members.feature
github_api-0.9.4 features/orgs/members.feature
github_api-0.9.3 features/orgs/members.feature
github_api-0.9.2 features/orgs/members.feature
github_api-0.9.1 features/orgs/members.feature
github_api-0.9.0 features/orgs/members.feature
github_api-0.8.11 features/orgs/members.feature
github_api-0.8.10 features/orgs/members.feature
github_api-0.8.9 features/orgs/members.feature