class RuboCop::Cop::Minitest::AssertEmpty

def on_send(node)

def on_send(node)
  return unless node.method?(:assert)
  return unless (arguments = peel_redundant_parentheses_from(node.arguments))
  return unless arguments.first.respond_to?(:method?) && arguments.first.method?(:empty?)
  return unless arguments.first.arguments.empty?
  add_offense(node, message: offense_message(arguments)) do |corrector|
    autocorrect(corrector, node, arguments)
  end
end