123456789_123456789_123456789_123456789_123456789_

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

Hook - Inherited

Instance Method Summary

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:

[ GitHub ]

  
# File 'rspec-core/lib/rspec/core/hooks.rb', line 402

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