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
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. |
OlderNewer