Class: RSpec::Core::Hooks::AfterHooks

Inherits:
HookCollection show all
Defined in:
lib/rspec/core/hooks.rb

Instance Method Summary collapse

Methods inherited from HookCollection

#find_hooks_for, #without_hooks_for

Instance Method Details

#run_all(example_group_instance) ⇒ Object


79
80
81
# File 'lib/rspec/core/hooks.rb', line 79

def run_all(example_group_instance)
  reverse.each {|h| h.run_in(example_group_instance) }
end

#run_all!(example_group_instance) ⇒ Object


83
84
85
# File 'lib/rspec/core/hooks.rb', line 83

def run_all!(example_group_instance)
  pop.run_in(example_group_instance) until empty?
end