Spectator::Expectations::ExpectationPartial(T)
Inherits Struct < Value < Object
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.
Constructors
Instance methods
never_to(matcher) : Nil
Sourcenot_to(matcher) : Nil
Sourceto(stubs : Enumerable(Mocks::MethodStub)) : Nil
Sourceto(stub : Mocks::MethodStub) : Nil
Sourceto_eventually(stubs : Enumerable(Mocks::MethodStub)) : Nil
Sourceto_eventually(stub : Mocks::MethodStub) : Nil
Sourceto_eventually(matcher) : Nil
Asserts that some criteria defined by the matcher is eventually satisfied. The expectation is checked after the example finishes and all hooks have run.
to_never(stub : Enumerable(Mocks::MethodStub)) : Nil
Sourceto_never(stub : Mocks::MethodStub) : Nil
Sourceto_never(matcher) : Nil
Asserts that some criteria defined by the matcher is never satisfied. The expectation is checked after the example finishes and all hooks have run.
to_not(stubs : Enumerable(Mocks::MethodStub)) : Nil
Sourceto_not(stub : Mocks::MethodStub) : Nil
Sourceto_not(matcher) : Nil
Asserts that some criteria defined by the matcher is not satisfied.
This is effectively the opposite of #to.