Sha256: 000750df2156940006f858d4e4ce2c1499f74f0f65c77167b05e40e3d4ec3918

Contents?: true

Size: 1.11 KB

Versions: 3

Compression:

Stored size: 1.11 KB

Contents

@announce
Feature: Options via a command line interface (CLI)

  The application should accept options on the command line.  These options
  should override hard coded defaults

 Background: Empty configuration file so that we don't read global config locations
   Given an empty file named "repo.conf"

  Scenario: Version info
    When I run `repo --version`
    Then the exit status should be 0
    And the output should match /repo_manager, version ([\d]+\.[\d]+\.[\d]+$)/

  Scenario: Help
    When I run `repo --help`
    Then the exit status should be 0
    And the output should match:
      """
      .*
        Usage: .*
      """

  Scenario: Invalid option
    When I run `repo --non-existing-option`
    Then the exit status should be 1
    And the output should match:
      """
      ^.* invalid option: --non-existing-option
      ^.* --help for more information

      """

  Scenario: Invalid action
    When I run `repo non-existing-action`
    Then the exit status should be 1
    And the output should match:
      """
      ^.* invalid action: non-existing-action
      ^.* --help for more information

      """

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
repo_manager-0.7.3 features/bin.feature
repo_manager-0.7.2 features/bin.feature
repo_manager-0.7.1 features/bin.feature