module Kernel
Monkey patch Kernel
functions for testing.
Public Instance Methods
exit(status = true)
click to toggle source
# File lib/override_kernel/exit.rb, line 40 def exit(status = true) OverrideKernel::AppState.state = :dead old_exit(status) unless OverrideKernel.override_exit return status end
Also aliased as: old_exit
old_exit(status = true)
Patch exit so that it sets a flag rather than ends the application. (A call to exit will cause testing to stop otherwise).
Alias for: exit