Sha256: d09ef077dd5292d33f5aeb32e3dcb5014e099e1732a14d8805138c55f96edbab

Contents?: true

Size: 928 Bytes

Versions: 1

Compression:

Stored size: 928 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 I should see matching "revenc, version ([\d]+\.[\d]+\.[\d]+$)"

  Scenario: Help
    When I run "revenc --help"
    Then the exit status should be 0
    And I should see matching: 
      """
      .*
        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 I should see matching: 
      """
      ^.* invalid option: --non-existing-option
      ^.* --help for more information

      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revenc-0.1.2 features/bin.feature