class Mocha::Expectation
def in_sequence(sequence, *sequences)
- Example: Ensure methods are invoked in a specified order. -
Other tags:
- See: API#sequence -
Returns:
-
(Expectation)
- the same expectation, thereby allowing invocations of other {Expectation} methods to be chained.
Parameters:
-
sequences
(*Array
) -- more sequences in which expected method should appear. -
sequence
(Sequence
) -- sequence in which expected method should appear.
def in_sequence(sequence, *sequences) sequences.unshift(sequence).each { |seq| add_in_sequence_ordering_constraint(seq) } self end