Object
Provides the ability to determine whether a {StateMachine} is in a specified state at some point in the future.
@private
# File lib/mocha/state_machine.rb, line 36 36: def initialize(state_machine, state) 37: @state_machine, @state = state_machine, state 38: end
# File lib/mocha/state_machine.rb, line 41 41: def active? 42: @state_machine.current_state != @state 43: end
# File lib/mocha/state_machine.rb, line 46 46: def mocha_inspect 47: "#{@state_machine.name} is not #{@state.mocha_inspect}" 48: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.