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

Instance Method Details

#run(example) ⇒ Object



354
355
356
357
358
# File 'lib/rspec/core/hooks.rb', line 354

def run(example)
  example.instance_exec(example, &block)
rescue Support::AllExceptionsExceptOnesWeMustNotRescue => ex
  example.set_exception(ex)
end