class Process
Overview
Add default stub to .exit method.
This captures most (technically not all) attempts to exit the process.
This stub only takes effect in example code.
It intercepts .exit calls and raises Spectator::SystemExit to prevent killing the test.
Included Modules
Defined in:
spectator/mocks.crClass Method Summary
- .__temp_44(code)
- 
        .exit(code)
        
          Terminate the current process immediately. 
- .exit(code, &)
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(code)
        #
      
      
        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 at_exit, use ::exit for that.
status is the exit status of the current process.