From d7bb51d41d3ae01438e2b510fe5f684915b2bb46 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 30 May 2009 11:32:44 +0200 Subject: add tests --- t/05_graph.t | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 t/05_graph.t (limited to 't/05_graph.t') 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 ] +... -- cgit 1.4.1