Sha256: 5f25616edc4ade4dbf74772e0255159c9fdf25e8505f126be7815de0d1a81d4d

Contents?: true

Size: 1.81 KB

Versions: 7

Compression:

Stored size: 1.81 KB

Contents

Feature: gcli issue

  @ci-run
  Scenario: Available commands
    When I run `gcli issue`
    Then the exit status should be 0
      And the output should contain "issue create"
      And the output should contain "issue edit"
      And the output should contain "issue get"
      And the output should contain "issue list"

  Scenario: List all issues
    Given the GitHub API server:
    """
    get('/issues') { status 200 }
    """
    When I run `gcli issue ls --all`
    Then the exit status should be 0

  Scenario: List issues for authenticated user
    Given the GitHub API server:
    """
    get('/user/issues') { status 200 }
    """
    When I run `gcli issue ls`
    Then the exit status should be 0

  Scenario: List issues for a repository
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/issues') { status 200 }
    """
    When I run `gcli issue ls --user wycats --repo thor`
    Then the exit status should be 0

  Scenario: List issues for an organization
    Given the GitHub API server:
    """
    get('/orgs/rails/issues') { status 200 }
    """
    When I run `gcli issue ls --org rails`
    Then the exit status should be 0

  Scenario: Get issue
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/issues/1') { status 200 }
    """
    When I run `gcli issue get wycats thor 1`
    Then the exit status should be 0

  Scenario: Create issue
    Given the GitHub API server:
    """
    post('/repos/wycats/thor/issues') { status 200 }
    """
    When I run `gcli issue create wycats thor --title 'Found a bug'`
    Then the exit status should be 0

  Scenario: Edit issue
    Given the GitHub API server:
    """
    patch('/repos/wycats/thor/issues/1') { status 200 }
    """
    When I run `gcli issue edit wycats thor 1 --title 'Found a bug'`
    Then the exit status should be 0

Version data entries

7 entries across 7 versions & 1 rubygems

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