Class: FlexMock::CompositeExpectation

Class | FlexMock::CompositeExpectation
In: | lib/flexmock/expectation.rb
Parent: | Object

A composite expectation allows several expectations to be grouped into a single composite and then apply the same constraints to all expectations in the group.

### Methods

add method_missing mock new order_number should_receive to_s

### Public Class methods

new()

Initialize the composite expectation.

### Public Instance methods

add(expectation)

Add an expectation to the composite.

method_missing(sym, *args, &block)

Apply the constraint method to all expectations in the composite.

mock()

Return the associated mock object.

order_number()

Return the order number of the first expectation in the list.

should_receive(*args, &block)

Start a new method expectation. The following constraints will be applied to the new expectation.

to_s()

Return a string representations

[Validate]