Created
February 14, 2010 03:02
-
-
Save thechangelog/303804 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Then /^the exit status should be (\d+)$/ do |exit_status| | |
@last_exit_status.should == exit_status.to_i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment