Skip to content

Commit

Permalink
Warn about at_exit hooks being skipped if you force quit [double inte…
Browse files Browse the repository at this point in the history
…rupt]
  • Loading branch information
JonRowe committed Dec 1, 2023
1 parent d6e320d commit 6e7b15c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rspec/core/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ def self.handle_interrupt
exit!(1)
else
RSpec.world.wants_to_quit = true
$stderr.puts "\nRSpec is shutting down and will print the summary report... Interrupt again to force quit."

$stderr.puts(
"\nRSpec is shutting down and will print the summary report... Interrupt again to force quit" \
"[at_exit hooks will be skipped if you force quit]."
)
end
end

Expand Down

0 comments on commit 6e7b15c

Please sign in to comment.