class StateDrawingFinalTest

Public Instance Methods

setup() click to toggle source
# File test/unit/state_test.rb, line 927
def setup
  @machine = StateMachine::Machine.new(Class.new)
  @machine.states << @state = StateMachine::State.new(@machine, :parked)
  
  graph = GraphViz.new('G')
  @node = @state.draw(graph)
end
test_should_use_doublecircle_as_shape() click to toggle source
# File test/unit/state_test.rb, line 935
def test_should_use_doublecircle_as_shape
  assert_equal 'doublecircle', @node['shape'].to_s.gsub('"', '')
end