Class: WebMock::AssertionFailure
- Inherits:
-
Object
- Object
- WebMock::AssertionFailure
- Defined in:
- lib/webmock/assertion_failure.rb
Class Attribute Summary collapse
-
.error_class ⇒ Object
Returns the value of attribute error_class.
Class Method Summary collapse
Class Attribute Details
.error_class ⇒ Object
Returns the value of attribute error_class.
5 6 7 |
# File 'lib/webmock/assertion_failure.rb', line 5 def error_class @error_class end |
Class Method Details
.failure(message) ⇒ Object
6 7 8 |
# File 'lib/webmock/assertion_failure.rb', line 6 def failure() raise @error_class.new() end |