This repository was archived by the owner on Nov 30, 2024. It is now read-only.
This repository was archived by the owner on Nov 30, 2024. It is now read-only.
Rspec multiple runs because of exit when testing forked process #2058
Closed
Description
I'm having difficulties testing code that happens to fork processes.
# code under test
exit if fork
Process.setsid
exit if fork
Will cause rspec to run more than once because of the Kernel#exit
. Using exit!
changes this behavior. Any proposed rspec solutions I'm missing?
I have rspec installed with bundler. Running it via rspec
command. Fresh install, no changed to spec_helper
.
Metadata
Metadata
Assignees
Labels
No labels