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 `ruby -e '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 `ruby -e '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 ""

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 ""

Change sleep commands to use bash command.
Change sleep commands to use bash command.
