Sha256: c7351caddfe0c3ccd7185c92fb993e368f88942ef9b50258e1fa193cd306312e

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

Feature: gcli content

  @ci-run
  Scenario: Available commands

    When I run `gcli content`
    Then the exit status should be 0
      And the output should contain "content get"
      And the output should contain "content readme"
      And the output should contain "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 --archive_format=tarball --ref=new_feature`
    Then the exit status should be 0

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
github_cli-0.6.1 features/content.feature
github_cli-0.6.0 features/content.feature
github_cli-0.5.9 features/content.feature
github_cli-0.5.8 features/content.feature