Exception: Mutant::WarningExpectation::ExpectationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/mutant/warning_expectation.rb

Overview

Error raised on expectation miss

Instance Method Summary collapse

Instance Method Details

#messageString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return exception message

Returns:

  • (String)


16
17
18
# File 'lib/mutant/warning_expectation.rb', line 16

def message
  "Unexpected warnings: #{unexpected.inspect}, expected: #{expected.inspect}"
end