class RuboCop::Cop::Minitest::SkipWithoutReason

def conditional_parent(node)

def conditional_parent(node)
  return unless (parent = node.parent)
  if parent.if_type? || parent.case_type?
    parent
  elsif parent.when_type?
    parent.parent
  end
end