struct Spectator::Expectations::ExpectationPartial(T)
Overview
Stores part of an expectation (obviously). The part of the expectation this type covers is the actual value and source. This can also cover a block's behavior.
Defined in:
spectator/expectations/expectation_partial.crConstructors
-
.new(actual : TestExpression(T), source : Source)
Creates the partial.
Instance Method Summary
-
#actual : TestExpression(T)
The actual value being tested.
-
#not_to(matcher) : Nil
ditto
-
#source : Source
Location where this expectation was defined.
-
#to(matcher) : Nil
Asserts that some criteria defined by the matcher is satisfied.
-
#to_not(matcher) : Nil
Asserts that some criteria defined by the matcher is not satisfied.