Class: RSpec::Core::Hooks::AfterHook

Inherits:
Hook
  • Object
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?

Constructor Details

This class inherits a constructor from RSpec::Core::Hooks::Hook

Instance Method Details

#display_nameObject



34
35
36
# File 'lib/rspec/core/hooks.rb', line 34

def display_name
  "after hook"
end

#run(example) ⇒ Object



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