Sha256: 845816da44621c24d2b982f9762a14c319261cb61ebd9dfd27a9b2e8d9bd6893

Contents?: true

Size: 1.51 KB

Versions: 7

Compression:

Stored size: 1.51 KB

Contents

Feature: gcli milestone

  @ci-run
  Scenario: Available commands

    When I run `gcli milestone`
    Then the exit status should be 0
      And the output should contain "milestone create"
      And the output should contain "milestone delete"
      And the output should contain "milestone get"
      And the output should contain "milestone list"
      And the output should contain "milestone update"

  Scenario: List milestones
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/milestones') { status 200 }
    """
    When I run `gcli milestone ls wycats thor`
    Then the exit status should be 0

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

  Scenario: Create milestone
    Given the GitHub API server:
    """
    post('/repos/wycats/thor/milestones') { status 200 }
    """
    When I run `gcli milestone create wycats thor --title=new`
    Then the exit status should be 0

  Scenario: Update milestone
    Given the GitHub API server:
    """
    patch('/repos/wycats/thor/milestones/1') { status 200 }
    """
    When I run `gcli milestone update wycats thor 1 --title=new`
    Then the exit status should be 0

  Scenario: Delete milestone
    Given the GitHub API server:
    """
    delete('/repos/wycats/thor/milestones/1') { status 200 }
    """
    When I run `gcli milestone del wycats thor 1`
    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/milestone.feature
github_cli-0.6.1 features/milestone.feature
github_cli-0.6.0 features/milestone.feature
github_cli-0.5.9 features/milestone.feature
github_cli-0.5.8 features/milestone.feature
github_cli-0.5.7 features/milestone.feature
github_cli-0.5.6 features/milestone.feature