method
register_at_exit_hook
RSpec latest stable (1.3.1)
-
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 44 def register_at_exit_hook # :nodoc: unless @already_registered_at_exit_hook at_exit do unless $! || run? || Spec::Example::ExampleGroupFactory.registered_or_ancestor_of_registered?(options.example_groups) success = run exit success if exit? end end @already_registered_at_exit_hook = true end end