test for stackoverflow Path bug
[catagits/Catalyst-Runtime.git] / t / lib / TestAppMatchSingleArg / Controller / Root.pm
diff --git a/t/lib/TestAppMatchSingleArg/Controller/Root.pm b/t/lib/TestAppMatchSingleArg/Controller/Root.pm
new file mode 100644 (file)
index 0000000..ab24f12
--- /dev/null
@@ -0,0 +1,19 @@
+package TestAppMatchSingleArg::Controller::Root;
+
+use strict;
+use warnings;
+use base 'Catalyst::Controller';
+
+__PACKAGE__->config->{namespace} = '';
+
+sub match_single : Path Args(1) {
+    my ($self, $c) = @_;
+    $c->res->body('Path Args(1)');
+}
+
+sub match_other : Path {
+    my ($self, $c) = @_;
+    $c->res->body('Path');
+}
+
+1;