Sha256: bafb33f779bd33ab0db33bbd1dd7e89c2ebb5f11ac8c5605babf80e704759791

Contents?: true

Size: 1.51 KB

Versions: 1

Compression:

Stored size: 1.51 KB

Contents

@announce
Feature: Application actions, configuration and error handling

  As an interactive user or automated script
  The application should accept actions and report errors 

  Scenario: No command line action
    When I run "revenc"
    Then the exit status should be 1
    And I should see matching: 
      """
      ^.* action required
      ^.* --help for more information
      """

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

      """

  Scenario: --config FILE (exists)
    Given an empty file named "config.conf"
    When I run "revenc mount --verbose --config config.conf"
    Then I should see: 
      """
      loading config file: config.conf
      """

  Scenario: --config FILE (not found)
    When I run "revenc mount --verbose --config config.conf"
    Then I should not see: 
      """
      loading config file: config.conf
      """
    And I should see: 
      """
      config file not found 
      """

  Scenario: Backtrace with --verbose option
    When I run "revenc --verbose mount bad_source bad_dest"
    Then the exit status should be 1
    And I should see matching: 
      """
      lib/(.*)/app.rb
      """

  Scenario: No backtrace without --verbose option
    When I run "revenc mount bad_source bad_dest --no-verbose"
    Then the exit status should be 1
    And I should not see: 
      """
      /app.rb:
      """

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
revenc-0.1.2 features/app.feature