Sha256: c5812d7f0f6301edc5747f4eebfbbe7beb51bcca8547ef01632c1af819070b3c
Contents?: true
Size: 243 Bytes
Versions: 6
Compression:
Stored size: 243 Bytes
Contents
module Minitest module ErrorOnWarning def warn(message, category: nil) message = "[#{category}] #{message}" if category raise UnexpectedWarning, message end end ::Warning.singleton_class.prepend(ErrorOnWarning) end
Version data entries
6 entries across 6 versions & 5 rubygems