Collection of expectations from an example.
Constructors
new(expectations : Array(Expectation))
SourceInstance methods
each
Iterates through all expectations.
Sourceeach_satisfied
Iterates over only the satisfied expectations.
Sourceeach_unsatisfied
Iterates over only the unsatisfied expectations.
Sourcefailed?
Determines whether the example failed
based on if any expectations were not satisfied.
Sourcesatisfied
Returns a collection of only the satisfied expectations.
Sourcesuccessful?
Determines whether the example was successful
based on if all expectations were satisfied.
Sourceto_json(json : JSON::Builder)
Creates the JSON representation of the expectations.
Sourceunsatisfied
Returns a collection of only the unsatisfied expectations.
Source