class Mocha::StateMachine::StatePredicate

Provides the ability to determine whether a {StateMachine} is in a specified state at some point in the future.

def active?

Other tags:
    Private: -
def active?
  @state_machine.current_state != @state
end

def initialize(state_machine, state)

Other tags:
    Private: -
def initialize(state_machine, state)
  @state_machine = state_machine
  @state = state
end

def mocha_inspect

Other tags:
    Private: -
def mocha_inspect
  "#{@state_machine.name} is not #{@state.mocha_inspect}"
end