Sha256: 1d8da407993c8f03447669f58be7da02e3415c2dc7762559017cb31a6f7b9c89

Contents?: true

Size: 1.19 KB

Versions: 8

Compression:

Stored size: 1.19 KB

Contents

Feature: gcli content

  Scenario: Available commands

    When I run `gcli content`
    Then the exit status should be 0
      And the output should contain "gcli content get"
      And the output should contain "gcli content readme"
      And the output should contain "gcli content archive"

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

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

  Scenario: Archive
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/zipball/master') { status 200 }
    """
    When I run `gcli content archive wycats thor`
    Then the exit status should be 0

  Scenario: Archive with params
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/tarball/new_feature') { status 200 }
    """
    When I run `gcli content archive wycats thor --params=archive_format:tarball ref:new_feature`
    Then the exit status should be 0

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
github_cli-0.5.7 features/content.feature
github_cli-0.5.6 features/content.feature
github_cli-0.5.5 features/content.feature
github_cli-0.5.4 features/content.feature
github_cli-0.5.3 features/content.feature
github_cli-0.5.2 features/content.feature
github_cli-0.5.1 features/content.feature
github_cli-0.5.0 features/content.feature