class Process

Defined in:

spectator/system_exit.cr

Class Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Class Method Detail

def self.exit(status = 0) : NoReturn #

Replace the typically used exit method with a method that raises. This allows tests to catch attempts to exit the application.


[View source]