Used to constrain the order in which expectations can occur.
@see API#sequence @see Expectation#in_sequence
@private
# File lib/mocha/sequence.rb, line 33 33: def constrain_as_next_in_sequence(expectation) 34: index = @expectations.length 35: @expectations << expectation 36: expectation.add_ordering_constraint(InSequenceOrderingConstraint.new(self, index)) 37: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.