Class: RSpec::Core::Hooks::AfterHook
- Inherits:
-
Hook
- Object
- Hook
- RSpec::Core::Hooks::AfterHook
show all
- Defined in:
- lib/rspec/core/hooks.rb
Instance Attribute Summary
Attributes inherited from Hook
#block, #options
Instance Method Summary
(collapse)
Methods inherited from Hook
#initialize, #options_apply?
Instance Method Details
- (Object) display_name
34
35
36
|
# File 'lib/rspec/core/hooks.rb', line 34
def display_name
"after hook"
end
|
- (Object) run(example)
30
31
32
|
# File 'lib/rspec/core/hooks.rb', line 30
def run(example)
example.instance_eval_with_rescue("in an after hook", &block)
end
|