123456789_123456789_123456789_123456789_123456789_

Module: Minitest::ErrorOnWarning

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/minitest/error_on_warning.rb

Instance Method Summary

Instance Method Details

#warn(message, category: nil)

Raises:

[ GitHub ]

  
# File 'lib/minitest/error_on_warning.rb', line 4

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