Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit c074ade

Browse files
committed
Merge pull request #3054 from rspec/improve-force-quit-message
Warn about at_exit hooks being skipped if you force quit.
1 parent 79cbf03 commit c074ade

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rspec/core/runner.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ def self.handle_interrupt
182182
exit!(1)
183183
else
184184
RSpec.world.wants_to_quit = true
185-
$stderr.puts "\nRSpec is shutting down and will print the summary report... Interrupt again to force quit."
185+
186+
$stderr.puts(
187+
"\nRSpec is shutting down and will print the summary report... Interrupt again to force quit " \
188+
"(warning: at_exit hooks will be skipped if you force quit)."
189+
)
186190
end
187191
end
188192

0 commit comments

Comments
 (0)