class RuboCop::Cop::RSpec::AroundBlock
def check_for_unused_proxy(block, proxy)
def check_for_unused_proxy(block, proxy) name, = *proxy find_arg_usage(block) do |usage| return if usage.include?(s(:lvar, name)) end add_offense(proxy, :expression, format(MSG_UNUSED_ARG, arg: name)) end