class RuboCop::Cop::RSpec::MultipleExpectations

def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler

rubocop:disable InternalAffairs/NumblockHandler
def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler
  return unless example?(node)
  return if example_with_aggregate_failures?(node)
  expectations_count = to_enum(:find_expectation, node).count
  return if expectations_count <= max_expectations
  self.max = expectations_count
  flag_example(node, expectation_count: expectations_count)
end