class RuboCop::Cop::Minitest::RefuteSame

def on_send(node)

rubocop:disable Metrics/AbcSize
def on_send(node)
  if (equal_node, expected_node, actual_node, message_node = refute_with_equal?(node))
    add_offense(node, message: message(expected_node, actual_node, message_node.first)) do |corrector|
      corrector.replace(node.loc.selector, 'refute_same')
      corrector.replace(equal_node, "#{expected_node.source}, #{actual_node.source}")
    end
  elsif (expected_node, actual_node, message_node = refute_equal_with_object_id?(node))
    add_offense(node, message: message(expected_node, actual_node, message_node.first)) do |corrector|
      corrector.replace(node.loc.selector, 'refute_same')
      remove_method_call(expected_node.parent, corrector)
      remove_method_call(actual_node.parent, corrector)
    end
  end
end