Sha256: 899ea1ebcc61c6cd1b1a0643e4708b1b8da5958e553586315d79b809a65eb84f

Contents?: true

Size: 934 Bytes

Versions: 1

Compression:

Stored size: 934 Bytes

Contents

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

  As an interactive user or automated script
  The application should accept options on the command line
  These options should override hard coded defaults 
  In order to configure options

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

  Scenario: Help
    When I run "revenc --help"
    Then the exit status should be 0
    And the output should match: 
      """
      .*
        Usage: .*
      .*
      Options:
      .*
          -v, --\[no-\]verbose               Run verbosely
      """

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

      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revenc-0.1.3 features/bin.feature