Exception: Spectre::ExpectationFailure

Inherits:
Exception
  • Object
show all
Defined in:
lib/spectre.rb

Direct Known Subclasses

Assertion::AssertionFailure

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, expectation) ⇒ ExpectationFailure

Returns a new instance of ExpectationFailure.



42
43
44
45
# File 'lib/spectre.rb', line 42

def initialize message, expectation
  super message
  @expectation = expectation
end

Instance Attribute Details

#expectationObject (readonly)

Returns the value of attribute expectation.



40
41
42
# File 'lib/spectre.rb', line 40

def expectation
  @expectation
end