Sha256: e855d1cd3a4f9b65a61cf844117be150d08e8dc2b4c4199156f0a2070b65d030

Contents?: true

Size: 1.92 KB

Versions: 3

Compression:

Stored size: 1.92 KB

Contents

Feature: gcli member

  @ci-run
  Scenario: Available commands

    When I run `gcli member`
    Then the exit status should be 0
      And the output should contain "member delete"
      And the output should contain "member list"
      And the output should contain "member member"
      And the output should contain "member publicize"

  Scenario: List members
    Given the GitHub API server:
    """
    get('/orgs/rails/members') { status 200 }
    """
    When I run `gcli member ls rails`
    Then the exit status should be 0

  Scenario: List public members
    Given the GitHub API server:
    """
    get('/orgs/rails/public_members') { status 200 }
    """
    When I run `gcli member ls --public rails`
    Then the exit status should be 0

  Scenario: Check if user is a member of an organization
    Given the GitHub API server:
    """
    get('/orgs/rails/members/wycats') { status 200 }
    """
    When I run `gcli member member rails wycats`
    Then the exit status should be 0

  Scenario: Check if user is a public member of an organization
    Given the GitHub API server:
    """
    get('/orgs/rails/public_members/wycats') { status 200 }
    """
    When I run `gcli member member --public rails wycats`
    Then the exit status should be 0

  Scenario: Remove a member
    Given the GitHub API server:
    """
    delete('/orgs/rails/members/wycats') { status 200 }
    """
    When I run `gcli member del rails wycats`
    Then the exit status should be 0

  Scenario: Publicize user's membership
    Given the GitHub API server:
    """
    put('/orgs/rails/public_members/wycats') { status 200 }
    """
    When I run `gcli member publicize rails wycats`
    Then the exit status should be 0

  Scenario: Conceal user's membership
    Given the GitHub API server:
    """
    delete('/orgs/rails/public_members/wycats') { status 200 }
    """
    When I run `gcli member conceal rails wycats`
    Then the exit status should be 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_cli-0.6.2 features/member.feature
github_cli-0.6.1 features/member.feature
github_cli-0.6.0 features/member.feature