Class: WebMock::AssertionFailure

Inherits:
Object
  • Object
show all
Defined in:
lib/webmock/assertion_failure.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.error_classObject

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

Raises:



8
9
10
# File 'lib/webmock/assertion_failure.rb', line 8

def failure(message)
  raise @error_class.new(message)
end