Sha256: fb3e95a6020452da731ca0c42d1bb1a071183b0874b458e0dc66aa40458e42be

Contents?: true

Size: 1.56 KB

Versions: 1

Compression:

Stored size: 1.56 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

      Options:
          -s, --sort          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

      Options:
          -s, --sort          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

      Options:
          -s, --sort          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.0.1 features/help.feature