method
register_at_exit_hook
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Runner
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
register_at_exit_hook(# :nodoc:)
public
Hide source
# File lib/spec/runner.rb, line 187 def register_at_exit_hook # :nodoc: $spec_runner_at_exit_hook_registered ||= nil unless $spec_runner_at_exit_hook_registered at_exit do unless $! || Spec.run?; \ success = Spec.run; \ exit success if Spec.exit?; \ end end $spec_runner_at_exit_hook_registered = true end end