summary refs log tree commit diff
path: root/t/05_graph.t
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-05-30 11:32:44 +0200
committerfranck cuny <franck@lumberjaph.net>2009-05-30 11:32:44 +0200
commitd7bb51d41d3ae01438e2b510fe5f684915b2bb46 (patch)
tree80320115c08e039a160d77866cbaebf9d5d7ec13 /t/05_graph.t
parentimport (diff)
downloadcatalystx-dispatcher-asgraph-d7bb51d41d3ae01438e2b510fe5f684915b2bb46.tar.gz
add tests
Diffstat (limited to 't/05_graph.t')
-rw-r--r--t/05_graph.t18
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 ]
+...