Class: RSpec::Core::Hooks::AfterContextHook

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



363
364
365
366
367
# File 'lib/rspec/core/hooks.rb', line 363

def run(example)
  example.instance_exec(example, &block)
rescue Support::AllExceptionsExceptOnesWeMustNotRescue => e
  RSpec.configuration.reporter.notify_non_example_exception(e, "An error occurred in an `after(:context)` hook.")
end