summaryrefslogtreecommitdiff
path: root/t/05_graph.t
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 ]
+...