Created
July 12, 2010 22:16
-
-
Save bakineggs/473157 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
| # hack written for rspec 2.0.0.beta.17 | |
| # lets you Ctrl-c to cancel tests in progress and get partial results from those that have run | |
| # for rspec 1.3.0, see http://gist.github.com/473175 | |
| trap 'INT' do | |
| class RSpec::Core::Example | |
| def run(example_group_instance, reporter); end | |
| end | |
| raise 'Interrupted before example finished' | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment