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.
7 8 9 |
# File 'lib/webmock/assertion_failure.rb', line 7 def error_class @error_class end |
Class Method Details
.failure(message) ⇒ Object
8 9 10 |
# File 'lib/webmock/assertion_failure.rb', line 8 def failure() raise @error_class.new() end |