Sha256: 076045d47731baef797a0bae2853b08a02fba6cff3d72b0a0fd44179cb7b2dfc

Contents?: true

Size: 969 Bytes

Versions: 3

Compression:

Stored size: 969 Bytes

Contents

Feature: exit statuses

  In order to specify expected exit statuses
  As a developer using Cucumber
  I want to use the "the exit status should be" step

  Scenario: exit status of 0
    When I run `true`
    Then the exit status should be 0

  Scenario: non-zero exit status
    When I run `false`
    Then the exit status should be 1
    And the exit status should not be 0

  Scenario: Successfully run something
    When I successfully run `true`

  Scenario: Successfully run something for a long time
    Given The default aruba timeout is 0 seconds
    When I successfully run `sleep 1` for up to 2 seconds

  Scenario: Unsuccessfully run something that takes too long
    Given The default aruba timeout is 0 seconds
    When I do aruba I successfully run `sleep 1`
    Then aruba should fail with "process still alive after 0 seconds"

  Scenario: Unsuccessfully run something
    When I do aruba I successfully run `false`
    Then aruba should fail with ""

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aruba-0.5.4 features/exit_statuses.feature
aruba-0.5.3 features/exit_statuses.feature
aruba-0.5.2 features/exit_statuses.feature