Skip to content

Instantly share code, notes, and snippets.

@bakineggs
Created July 12, 2010 22:40
Show Gist options
  • Select an option

  • Save bakineggs/473175 to your computer and use it in GitHub Desktop.

Select an option

Save bakineggs/473175 to your computer and use it in GitHub Desktop.
# 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