module RuboCop::Cop::Minitest::InstanceOfAssertionHandleable

def build_required_arguments(node, method_name, first_capture, second_capture)

def build_required_arguments(node, method_name, first_capture, second_capture)
  if node.method?(method_name)
    [second_capture, first_capture]
  else
    [first_capture, second_capture]
  end.map(&:source).join(', ')
end