Sha256: 72714b8e8b52e601da4794bc471f6896379b0bfdae2e952bfe6f11963f1ae878

Contents?: true

Size: 1.12 KB

Versions: 7

Compression:

Stored size: 1.12 KB

Contents

Feature: gcli assignee

  @ci-run
  Scenario: Available commands

    When I run `gcli assignee`
    Then the exit status should be 0
      And the output should contain "assignee list"
      And the output should contain "assignee check"

  Scenario: List assignees
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/assignees') {
      body :login => 'octokit', :id => 1,
           :url => 'https://api.github.com/users/peter-murach'
      status 200
    }
    """
    When I successfully run `gcli assignee ls wycats thor`
    Then the stdout should contain "octokit"

  Scenario: Check assignee
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/assignees/octokit') { status 204 }
    """
    When I run `gcli assignee check wycats thor octokit`
    Then the exit status should be 0
      And the stdout should contain "true"

  Scenario: Check assignee
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/assignees/octokit') { status 404 }
    """
    When I run `gcli assignee check wycats thor octokit`
    Then the exit status should be 0
      And the stdout should contain "false"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
github_cli-0.6.2 features/assignee.feature
github_cli-0.6.1 features/assignee.feature
github_cli-0.6.0 features/assignee.feature
github_cli-0.5.9 features/assignee.feature
github_cli-0.5.8 features/assignee.feature
github_cli-0.5.7 features/assignee.feature
github_cli-0.5.6 features/assignee.feature