summary refs log tree commit diff
path: root/t/lib/TestApp/Controller/Root.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-12-04 09:52:18 +0100
committerfranck cuny <franck@lumberjaph.net>2009-12-04 09:52:18 +0100
commit2d25e2fdd3232f35971e60f0daacd90fcf9be547 (patch)
treee90230c1cfd3cc1d89cf02485dcfb6dbfb48aa5a /t/lib/TestApp/Controller/Root.pm
parentadd basic tests (diff)
downloadmoosex-net-api-2d25e2fdd3232f35971e60f0daacd90fcf9be547.tar.gz
add a catalyst app to tests
Diffstat (limited to 't/lib/TestApp/Controller/Root.pm')
-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..7ea3f25
--- /dev/null
+++ b/t/lib/TestApp/Controller/Root.pm
@@ -0,0 +1,16 @@
+package TestApp::Controller::Root;
+
+use strict;
+use warnings;
+use base qw/Catalyst::Controller::REST/;
+
+sub foo : Local : ActionClass('REST') {
+    my ( $self, $c ) = @_;
+}
+
+sub foo_GET {
+    my ( $self, $c ) = @_;
+    $self->status_ok( $c, entity => { status => 1 } );
+}
+
+1;