diff options
author | franck cuny <franck@lumberjaph.net> | 2009-05-30 11:32:44 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2009-05-30 11:32:44 +0200 |
commit | d7bb51d41d3ae01438e2b510fe5f684915b2bb46 (patch) | |
tree | 80320115c08e039a160d77866cbaebf9d5d7ec13 /t/05_graph.t | |
parent | import (diff) | |
download | catalystx-dispatcher-asgraph-d7bb51d41d3ae01438e2b510fe5f684915b2bb46.tar.gz |
add tests
Diffstat (limited to 't/05_graph.t')
-rw-r--r-- | t/05_graph.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/05_graph.t b/t/05_graph.t new file mode 100644 index 0000000..e995e75 --- /dev/null +++ b/t/05_graph.t @@ -0,0 +1,18 @@ +use strict; +use warnings; +use Test::More tests => 1; +use lib ('t/lib'); +use CatalystX::Dispatcher::AsGraph; + +my $graph = CatalystX::Dispatcher::AsGraph->new( + appname => 'TestApp', + output => 'test' +); +$graph->run; +is $graph->graph->as_txt, <<'...'; +[ / ] --> [ \[action\] edit ] +[ / ] --> [ \[action\] index ] +[ / ] --> [ \[action\] root ] +[ / ] --> [ \[action\] view ] +[ / ] --> [ \[action\] view_user ] +... |