Permalink
Browse files

modify scenario to not explicitly set a diff exit code

  • Loading branch information...
dchelimsky committed Aug 22, 2011
1 parent 021d831 commit ea322b903c31614a63c6b57481bcbf8ce98afa73
Showing with 2 additions and 2 deletions.
  1. +2 −2 features/command_line/exit_status.feature
@@ -51,14 +51,14 @@ Feature: exit status
Then the exit status should be 0
And the output should contain "0 examples"
- Scenario: exit with 1 when an at_exit hook sets the exit code
+ Scenario: exit with rspec's exit code when an at_exit hook is added upstream
Given a file named "exit_at_spec.rb" with:
"""
require 'rspec/autorun'
describe "exit_at" do
it "fails" do
- at_exit { exit 0 }
+ at_exit { nil } # this would result in an exit code of 0
1.should == 2
end
end

0 comments on commit ea322b9

Please sign in to comment.