module RSpec::Core::Hooks

def around(*args, &block)

Other tags:
    Note: - `:each` is the only supported scope.
    Note: - the syntax of `around` is similar to that of `before` and `after`

Other tags:
    Yield: - the example to run

Parameters:
  • conditions (Hash) --
  • scope (Symbol) -- `:each` (defaults to `:each`)

Overloads:
  • around(conditions, &block)
  • around(scope, conditions, &block)
  • around(scope, &block)
  • around(&block)

Other tags:
    Api: - public
def around(*args, &block)
  scope, options = scope_and_options_from(*args)
  hooks[:around][scope].unshift block.extend(AroundHookExtension).with(options)
end