module Minitest::ErrorOnWarning
def warn message, category: nil
def warn message, category: nil message = "[#{category}] #{message}" if category raise UnexpectedWarning, message end
def warn message, category: nil message = "[#{category}] #{message}" if category raise UnexpectedWarning, message end