Class: Mocha::StateMachine

Class | Mocha::StateMachine
In: | lib/mocha/state_machine.rb
Parent: | Object

A state machine that is used to constrain the order of invocations. An invocation can be constrained to occur when a state is, or is_not, active.

### Methods

become is is_not starts_as

### Public Instance methods

become(next_state)

Put the `state_machine` into the `next_state`.

is(state)

Determines whether the `state_machine` is in the specified `state`.

is_not(state)

Determines whether the `state_machine` is not in the specified `state`.

starts_as(initial_state) → state_machine

Put the `state_machine` into the `initial_state`.

[Validate]