Exception: Heathen::ExpectationNotMet

Inherits:
Error
  • Object
show all
Defined in:
lib/heathen/errors.rb

Overview

Raised by task [Processor] method when a pre-condition (such as mime-type) is not valid.

Instance Method Summary collapse

Constructor Details

#initialize(name, value, pattern) ⇒ ExpectationNotMet

Returns a new instance of ExpectationNotMet.


10
11
12
# File 'lib/heathen/errors.rb', line 10

def initialize name, value, pattern
  super "Expectation failure on #{name}, expected '#{value.to_s}' to match /#{pattern.to_s}/"
end