class RSpec::Core::Example

def with_around_hooks(&wrapped_example)

def with_around_hooks(&wrapped_example)
  around_hooks_for(@example_group_class).reverse.inject(wrapped_example) do |wrapper, hook|
    def wrapper.run; call; end
    lambda { @example_group_instance.instance_exec(wrapper, &hook) }
  end
end