Class: FlexMock::ExpectationDirector

Class | FlexMock::ExpectationDirector
In: | lib/flexmock/expectation_director.rb
Parent: | Object

The expectation director is responsible for routing calls to the correct expectations for a given argument list.

### Methods

<< call new

### Public Class methods

new(sym)

Create an ExpectationDirector for a mock object.

### Public Instance methods

<<(expectation)

Append an expectation to this director.

call(*args)

Invoke the expectations for a given set of arguments.

First, look for an expectation that matches the arguements and is eligible to be called. Failing that, look for a expectation that matches the arguments (at this point it will be ineligible, but at least we will get a good failure message). Finally, check for expectations that don‘t have any argument matching criteria.

[Validate]