Module: Minitest::ErrorOnWarning

Included in:
Minitest
Defined in:
lib/minitest/error_on_warning.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#warn(message, category: nil) ⇒ Object

Raises:



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

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