class RSpec::Core::Example::Procsy
end
end
ex.run # run delegates to ex.call
end
raise “some message”
if ex.metadata == :some_value && some_global_condition
c.around do |ex| # Procsy which wraps the example
RSpec.configure do |c|
@example
`around` hook.
here to document how to interact with the object yielded to an
@note Procsy, itself, is not a public API, but we’re documenting it
around} hooks.
Wraps a ‘Proc` and exposes a `run` method for use in {Hooks#around
def initialize(metadata, &block)
def initialize(metadata, &block) @metadata = metadata @proc = block end
def wrap(&block)
- Api: - private
def wrap(&block) self.class.new(metadata, &block) end