Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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