Sha256: fd2f723dd959a573823a8ed3d3e20b4b943844da3d0afa3c53832c8d7f51a8f4

Contents?: true

Size: 1.16 KB

Versions: 11

Compression:

Stored size: 1.16 KB

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: exit status of 0 with `
    When I run `ruby -h`
    Then the exit status should be 0

  Scenario: Not explicitly exiting at all
    When I run `ruby -e '42'`
    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: Successfully run something with `
    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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aruba-0.4.6 features/exit_statuses.feature
aruba-0.4.5 features/exit_statuses.feature
aruba-0.4.4 features/exit_statuses.feature
aruba-0.4.3 features/exit_statuses.feature
aruba-0.4.2 features/exit_statuses.feature
aruba-0.4.1 features/exit_statuses.feature
aruba-0.4.0 features/exit_statuses.feature
aruba-0.3.7 features/exit_statuses.feature
aruba-0.3.6 features/exit_statuses.feature
aruba-0.3.5 features/exit_statuses.feature
aruba-0.3.4 features/exit_statuses.feature