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.
- #never_to(matcher) : Nil
- #not_to(matcher) : Nil
-
#source : Source
Location where this expectation was defined.
- #to(stubs : Enumerable(Mocks::MethodStub)) : Nil
- #to(stub : Mocks::MethodStub) : Nil
-
#to(matcher) : Nil
Asserts that some criteria defined by the matcher is satisfied.
- #to_eventually(stubs : Enumerable(Mocks::MethodStub)) : Nil
- #to_eventually(stub : Mocks::MethodStub) : Nil
-
#to_eventually(matcher) : Nil
Asserts that some criteria defined by the matcher is eventually satisfied.
- #to_never(stub : Enumerable(Mocks::MethodStub)) : Nil
- #to_never(stub : Mocks::MethodStub) : Nil
-
#to_never(matcher) : Nil
Asserts that some criteria defined by the matcher is never satisfied.
- #to_not(stubs : Enumerable(Mocks::MethodStub)) : Nil
- #to_not(stub : Mocks::MethodStub) : Nil
-
#to_not(matcher) : Nil
Asserts that some criteria defined by the matcher is not satisfied.
Instance methods inherited from class Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Constructor Detail
Instance Method Detail
Asserts that some criteria defined by the matcher is eventually satisfied. The expectation is checked after the example finishes and all hooks have run.
Asserts that some criteria defined by the matcher is never satisfied. The expectation is checked after the example finishes and all hooks have run.