Sha256: f7c71acbd4896236a9bb0f6fe317d791dd38e71faad58053bf025e0e76349415

Contents?: true

Size: 1.71 KB

Versions: 7

Compression:

Stored size: 1.71 KB

Contents

Feature: gcli hook

  Scenario: Available commands

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

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

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

  Scenario: Create hook
    Given the GitHub API server:
    """
    post('/repos/wycats/thor/hooks') { status 200 }
    """
    When I run `gcli hook create wycats thor --params=name:web config:{}`
    Then the exit status should be 0

  Scenario: Edit hook
    Given the GitHub API server:
    """
    patch('/repos/wycats/thor/hooks/1') { status 200 }
    """
    When I run `gcli hook edit wycats thor 1 --params=name:web config:{}`
    Then the exit status should be 0

  Scenario: Test hook
    Given the GitHub API server:
    """
    post('/repos/wycats/thor/hooks/1/test') { status 200 }
    """
    When I run `gcli hook test wycats thor 1`
    Then the exit status should be 0

  Scenario: Delete hook
    Given the GitHub API server:
    """
    delete('/repos/wycats/thor/hooks/1') { status 200 }
    """
    When I run `gcli hook 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.5.6 features/hook.feature
github_cli-0.5.5 features/hook.feature
github_cli-0.5.4 features/hook.feature
github_cli-0.5.3 features/hook.feature
github_cli-0.5.2 features/hook.feature
github_cli-0.5.1 features/hook.feature
github_cli-0.5.0 features/hook.feature