Sha256: b25f148f9a49c49919dc15bb2e96b07de2ca9e18f2e4ac1f9fb739934578cf39

Contents?: true

Size: 953 Bytes

Versions: 2

Compression:

Stored size: 953 Bytes

Contents

Feature: gcli tree

  @ci-run
  Scenario: Available commands

    When I run `gcli tree`
    Then the exit status should be 0
      And the output should contain "gcli tree create"
      And the output should contain "gcli tree get"

  Scenario: Get tree
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/git/trees/827efc6d5') { status 200 }
    """
    When I run `gcli tree get wycats thor 827efc6d5`
    Then the exit status should be 0

  Scenario: Get tree recursively
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/git/trees/827efc6d5') { status 200 }
    """
    When I run `gcli tree get wycats thor 827efc6d5 --recursive`
    Then the exit status should be 0

  Scenario: Create tree
    Given the Github API server:
    """
    post('/repos/wycats/thor/git/trees') { status 200 }
    """
    When I run `gcli tree create wycats thor --tree='path:file1 mode:00111'`
    Then the exit status should be 0

Version data entries

2 entries across 2 versions & 1 rubygems

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