-
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure nested at_exit blocks don't break exit status
Per teamcapybara/capybara#178, it's possible to have at_exit handlers installed inside Runner's run method that execute after the 'exit' call in autorun. These at_exit handlers can actually change the exit status (in this case, manual testing reveals that capybara's call to @browser.quit in driver.rb seems to be the problem). Avoid this issue entirely by isolating the at_exit handler that calls exit, ensuring it can't nest at_exit handlers.
- Loading branch information
Travis Vachon
committed
Jun 3, 2011
1 parent
3db6c4c
commit c24caf6
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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