Exception: Spectre::ExpectationFailure
- Defined in:
- lib/spectre.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#expectation ⇒ Object
readonly
Returns the value of attribute expectation.
Instance Method Summary collapse
-
#initialize(message, expectation) ⇒ ExpectationFailure
constructor
A new instance of ExpectationFailure.
Constructor Details
#initialize(message, expectation) ⇒ ExpectationFailure
Returns a new instance of ExpectationFailure.
42 43 44 45 |
# File 'lib/spectre.rb', line 42 def initialize , expectation super @expectation = expectation end |
Instance Attribute Details
#expectation ⇒ Object (readonly)
Returns the value of attribute expectation.
40 41 42 |
# File 'lib/spectre.rb', line 40 def expectation @expectation end |