Sha256: 59f6d961fe0b21a45efb26f77f1c60b41768ca6489ac3ddb3babeadb6d1ef577

Contents?: true

Size: 1.13 KB

Versions: 2

Compression:

Stored size: 1.13 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 "gcli assignee list"
      And the output should contain "gcli 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

2 entries across 2 versions & 1 rubygems

Version Path
github_cli-0.5.5 features/assignee.feature
github_cli-0.5.4 features/assignee.feature