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

Inherits:
Hook show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/hooks.rb

Instance Attribute Summary

Attributes inherited from Hook

#block, #options

Instance Method Summary collapse

Methods inherited from Struct

#as_json

Instance Method Details

#run(example) ⇒ Object



371
372
373
374
375
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/hooks.rb', line 371

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