Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

to_dot output does not show "default" transitions #7

Open
chuckremes opened this issue Aug 12, 2011 · 0 comments
Open

to_dot output does not show "default" transitions #7

chuckremes opened this issue Aug 12, 2011 · 0 comments

Comments

@chuckremes
Copy link

Bug:
Events are not drawn between states when they are defined as the "default" transition.

Version: 1.20

Repro:

require 'rubygems'
require 'statemachine'
require 'statemachine/generate/util'
require 'statemachine/generate/src_builder'
require 'statemachine/generate/dot_graph/dot_graph_statemachine'

#

class Machine
  def self.build
    Statemachine.build do
      state :one do
        event :foo, :two
      end

      state :two do
        default :two
      end
    end # Statemachine.build
  end
end # class Machine

m = Machine.build
m.to_dot(:output => 'foo')

The graphviz output should show some kind of "transition to self" event for the :two state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant