Sha256: 6247275c60be26d07bc541f5b8497669146a78fb6fd3b55fe0d34bb8dfac5f0b

Contents?: true

Size: 922 Bytes

Versions: 2

Compression:

Stored size: 922 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 "oct --version"
    Then the exit status should be 0
    And the output should match /oct, version ([\d]+\.[\d]+\.[\d]+$)/

  Scenario: Help
    When I run "oct --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 "oct --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

2 entries across 2 versions & 1 rubygems

Version Path
oct-0.2.0 features/bin.feature
oct-0.1.0 features/bin.feature