Created
July 12, 2010 22:40
-
-
Save bakineggs/473175 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 1.3.0 | |
| # lets you Ctrl-c to cancel tests in progress and get partial results from those that have run | |
| # for rspec 2.0, see http://gist.github.com/473157 | |
| trap 'INT' do | |
| module Spec::Example::ExampleMethods | |
| def execute(run_options, instance_variables); end | |
| end | |
| module Spec::Example::BeforeAndAfterHooks | |
| def before_each_parts; [] end | |
| def after_each_parts; [] end | |
| def before_all_parts; [] end | |
| def after_all_parts; [] 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