RSpec Results

 

 

StateMachineNode
should have id :id
should have a function dict, which is the state-machines dictionary
accessing the dictionary when the node is not attached to a machine will raise an exception
StateMachineEdge
should have from node :a
should have to node :b
should have name :name
StateMachineDefinition with no node
creating a machine should raise an error
StateMachineDefinition with a single node
should have node count 1
should be finished when run
StateMachine with 2 mock-states
should not touch another machine with same definition in their states
should call eventEnter on startNode before calling eventFrame
should not be finished without being started/tick called
should be finished when tick was called
- rest-time should be equal to initial time when calling tick
should only process first node and stay there, when tick-time is 0
should end in @n2 and be finished, when tick-time is 1
should return a node when calling state
should have a dictionary
should be able to pass on information from one state to another
should be able to pass on information from one state to another - saved and restored within state
- states have link up to machine
should return the state, when giving the correct name
StateMachine with 2 mock-states and a decision-node
should return again and again when continue is false
should finish when continue is true