Sha256: fbc40c7a18ec485809ee7794d8c2a101e40cb11bbf37f5d82a4ef2f7e1aec2ef

Contents?: true

Size: 1.18 KB

Versions: 17

Compression:

Stored size: 1.18 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"

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

  @posix
  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

17 entries across 17 versions & 5 rubygems

Version Path
aruba-0.5.0 features/exit_statuses.feature
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/aruba-0.4.11/features/exit_statuses.feature
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/aruba-0.4.11/features/exit_statuses.feature
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/aruba-0.4.11/features/exit_statuses.feature
ftl-0.2.0 vendor/bundle/gems/aruba-0.4.11/features/exit_statuses.feature
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/aruba-0.4.11/features/exit_statuses.feature
aruba-0.4.11 features/exit_statuses.feature
aruba-0.4.10 features/exit_statuses.feature
aruba-0.4.9 features/exit_statuses.feature
aruba-0.4.8 features/exit_statuses.feature
rjobs-0.3.3.alpha vendor/aruba-0.4.7/features/exit_statuses.feature
rjobs-0.3.2.alpha vendor/aruba-0.4.7/features/exit_statuses.feature
rjobs-0.3.1.alpha vendor/aruba-0.4.7/features/exit_statuses.feature
rjobs-0.3.0.alpha vendor/aruba-0.4.7/features/exit_statuses.feature
rjobs-0.2.0.alpha vendor/aruba-0.4.7/features/exit_statuses.feature
rjobs-0.1.0.alpha vendor/aruba-0.4.7/features/exit_statuses.feature
aruba-0.4.7 features/exit_statuses.feature