Class: RSpec::Core::Hooks::AfterHooks
Instance Method Summary
collapse
#find_hooks_for, #without_hooks_for
Instance Method Details
#run_all(example_group_instance) ⇒ Object
73
74
75
|
# File 'lib/rspec/core/hooks.rb', line 73
def run_all(example_group_instance)
reverse.each {|h| h.run_in(example_group_instance) } unless empty?
end
|
#run_all!(example_group_instance) ⇒ Object
77
78
79
|
# File 'lib/rspec/core/hooks.rb', line 77
def run_all!(example_group_instance)
pop.run_in(example_group_instance) until empty?
end
|