Skip to content

Instantly share code, notes, and snippets.

require "rspec/core"
module RSpec
class << Core::Runner
# SIGINT callback (installed by trap_interrupt)
undef handle_interrupt
def handle_interrupt
if RSpec.world.wants_to_quit
# The default way Ruby handles an interrupt signal.
# Makes current example fail with this exception as a cause.