Sha256: 9db00afc7fb52a0651f15332488b275245368a2a71d7f625f4389042e8fa81b9

Contents?: true

Size: 760 Bytes

Versions: 1

Compression:

Stored size: 760 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 "ruby -h"
    Then the exit status should be 0
    
  Scenario: non-zero exit status
    When I run "ruby -e 'exit 56'"
    Then the exit status should be 56
    And the exit status should not be 0

  Scenario: Successfully run something
    When I successfully run "ruby -e 'exit 0'"

  Scenario: Unsuccessfully run something
    When I do aruba I successfully run "ruby -e 'exit 10'"
    Then aruba should fail with "Exit status was 10"

  Scenario: Try to run something that doesn't exist
    When I run "does_not_exist"
    Then the exit status should be 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aruba-0.2.5 features/exit_statuses.feature