Class: RSpec::Core::Hooks::AroundHook Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Hook ,
Struct
|
|
Instance Chain:
self,
Hook ,
Struct
|
|
Inherits: |
RSpec::Core::Hooks::Hook
|
Defined in: | rspec-core/lib/rspec/core/hooks.rb |
Instance Attribute Summary
Instance Method Summary
- #execute_with(example, procsy) Internal use only
-
#hook_description
Internal use only
:nocov:
Instance Method Details
#execute_with(example, procsy)
[ GitHub ]# File 'rspec-core/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_description
:nocov:
# File 'rspec-core/lib/rspec/core/hooks.rb', line 402
def hook_description "around hook at #{Metadata.relative_path(block.source_location.join(':'))}" end