Class: RSpec::Core::Hooks::AroundHook

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

#execute_with(example, procsy) ⇒ Object



389
390
391
392
393
394
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/hooks.rb', line 389

def execute_with(example, procsy)
  example.instance_exec(procsy, &block)
  return if procsy.executed?
  Pending.mark_skipped!(example,
                        "#{hook_description} did not execute the example")
end

#hook_descriptionObject

:nocov:



402
403
404
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-core-3.12.0/lib/rspec/core/hooks.rb', line 402

def hook_description
  "around hook at #{Metadata.relative_path(block.source_location.join(':'))}"
end