class RuboCop::Cop::RSpec::IteratedExpectation
def on_block(node)
def on_block(node) each?(node) do |arg, body| if single_expectation?(body, arg) || only_expectations?(body, arg) add_offense(node.send_node) end end end
def on_block(node) each?(node) do |arg, body| if single_expectation?(body, arg) || only_expectations?(body, arg) add_offense(node.send_node) end end end