Add default stub to
This captures most (technically not all) attempts to exit the process.
This stub only takes effect in example code.
.exit calls and raises
Spectator::SystemExit to prevent killing the test.
Instance methods inherited from class
should(matcher, message = nil)
should_eventually(matcher, message = nil)
should_never(matcher, message = nil)
should_not(matcher, message = nil)
Terminate the current process immediately. All open files, pipes and sockets
are flushed and closed, all child processes are inherited by PID 1. This does
not run any handlers registered with
::exit for that.
status is the exit status of the current process.