summary refs log tree commit diff
path: root/t/lib/TestApp
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/lib/TestApp
parentimport (diff)
downloadcatalystx-dispatcher-asgraph-d7bb51d41d3ae01438e2b510fe5f684915b2bb46.tar.gz
add tests
Diffstat (limited to 't/lib/TestApp')
-rw-r--r--t/lib/TestApp/Controller/Root.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/lib/TestApp/Controller/Root.pm b/t/lib/TestApp/Controller/Root.pm
new file mode 100644
index 0000000..0d44865
--- /dev/null
+++ b/t/lib/TestApp/Controller/Root.pm
@@ -0,0 +1,16 @@
+package TestApp::Controller::Root;
+use parent Catalyst::Controller;
+
+__PACKAGE__->config->{namespace} = '';
+
+sub root : Chained('/') PathPart() CaptureArgs(0) { }
+
+sub index : Chained('root') PathPart('') Args(0) { }
+
+sub view : Chained('root') PathPart('view') Args(1) { }
+
+sub view_user : Chained('root') PathPart('view/user') Args(1) { }
+
+sub edit : Chained('root') PathPart('edit') Args(1) { }
+
+1;