Sha256: a2f377d8ed63baacd6172f7ad55009754775fea11cb35e9e231630d967bb6b66
Contents?: true
Size: 785 Bytes
Versions: 5
Compression:
Stored size: 785 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") require 'statemachine/generate/dot_graph/dot_graph_statemachine' describe Statemachine::Statemachine, "(Turn Stile)" do include TurnstileStatemachine before(:each) do remove_test_dir("dot") @output = test_dir("dot") create_turnstile end # it "should output to console when no output dir provided" do # # Note - this test doesn't verify output to the console, but it does # # ensure that the to_dot call does not fail if not output is provided. # @sm.to_dot # end it "should generate a basic graph declaration" do @sm.to_dot(:output => @output) dot = load_lines(@output, "main.dot") dot.should_not equal(nil) dot[0].include?("digraph").should == true end end
Version data entries
5 entries across 5 versions & 1 rubygems