Sha256: 04304bb3b10b7d74ea149770e0327f3ffe44f2f23d7cda6dc3804de58f83cf83

Contents?: true

Size: 1.59 KB

Versions: 1

Compression:

Stored size: 1.59 KB

Contents

Feature: Get help

  As a GitHub user
  I want to be able to list help information for reponaut
  In order to learn how to use it

  Scenario: List usage details
    When I run `reponaut -h`
    Then it should pass with:
      """
      Usage: reponaut [OPTIONS] USERNAME [LANGUAGE]

      Options:
          -c, --count         Sort by repo count
          -f, --ignore-forks  Ignore forked repos
          -h, --help          
          --version           
      """

  Scenario: List usage details with long option
    When I run `reponaut --help`
    Then it should pass with:
      """
      Usage: reponaut [OPTIONS] USERNAME [LANGUAGE]

      Options:
          -c, --count         Sort by repo count
          -f, --ignore-forks  Ignore forked repos
          -h, --help          
          --version           
      """

  Scenario: Get version
    When I run `reponaut --version`
    Then the exit status should be 0
    And the stdout should contain:
      """
      reponaut, version
      """

  Scenario: Specify an invalid option
    When I run `reponaut -b`
    Then the exit status should not be 0
    And the stderr should contain:
      """
      unknown option `-b'
      Run `reponaut --help` for help information
      """

  Scenario: Specify no options
    When I run `reponaut`
    Then the exit status should not be 0
    And the stderr should contain:
      """
      Usage: reponaut [OPTIONS] USERNAME [LANGUAGE]

      Options:
          -c, --count         Sort by repo count
          -f, --ignore-forks  Ignore forked repos
          -h, --help          
          --version           
      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reponaut-1.2.0 features/help.feature