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.



5
6
7
# File 'lib/webmock/assertion_failure.rb', line 5

def error_class
  @error_class
end

Class Method Details

.failure(message) ⇒ Object

Raises:



6
7
8
# File 'lib/webmock/assertion_failure.rb', line 6

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