Class: DuckTesting::Reporter::RaiseError

Inherits:
Base
  • Object
show all
Defined in:
lib/duck_testing/reporter/raise_error.rb

Instance Attribute Summary

Attributes inherited from Base

#violation

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from DuckTesting::Reporter::Base

Instance Method Details

#reportObject

Note:

Override Base#report.



7
8
9
# File 'lib/duck_testing/reporter/raise_error.rb', line 7

def report
  fail ContractViolationError, failure_message
end