diff options
| author | Luke Kanies <luke@madstop.com> | 2007-12-11 00:07:20 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2007-12-11 00:07:20 -0600 |
| commit | 3248c93f2fddf9b17148273af5dd5e2af2cb537b (patch) | |
| tree | 9c5796942858e063d7cc05e040e878b81d2f39f2 /spec/unit | |
| parent | a8bf74b9170b3cb27216f9755a39f635f748fc0a (diff) | |
Fixing #937 -- I had not ported the dot methods at all,
and I had to make a few small changes to make them work.
Diffstat (limited to 'spec/unit')
| -rwxr-xr-x | spec/unit/simple_graph.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/unit/simple_graph.rb b/spec/unit/simple_graph.rb index b9d939867..88873663c 100755 --- a/spec/unit/simple_graph.rb +++ b/spec/unit/simple_graph.rb @@ -23,6 +23,13 @@ describe Puppet::SimpleGraph do @graph.add_edge!(:one, :two) @graph.reversal.edge?(:two, :one).should be_true end + + it "should be able to produce a dot graph" do + @graph = Puppet::SimpleGraph.new + @graph.add_edge!(:one, :two) + + proc { @graph.to_dot_graph }.should_not raise_error + end end describe Puppet::SimpleGraph, " when managing vertices" do @@ -220,8 +227,3 @@ describe Puppet::SimpleGraph, " when reversing graphs" do edge.label.should == {:stuff => :awesome} end end - -describe Puppet::SimpleGraph, " when making DOT files" do - # LAK:FIXME yay - it "should have tests" -end |
