Skip to content

Commit

Permalink
Merge pull request #3054 from rspec/improve-force-quit-message
Browse files Browse the repository at this point in the history
Warn about at_exit hooks being skipped if you force quit.
  • Loading branch information
JonRowe committed Dec 6, 2023
1 parent 79cbf03 commit c074ade
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/rspec/core/runner.rb
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 " \
"(warning: at_exit hooks will be skipped if you force quit)."
)
end
end

Expand Down

0 comments on commit c074ade

Please sign in to comment.