From 2d25e2fdd3232f35971e60f0daacd90fcf9be547 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 4 Dec 2009 09:52:18 +0100 Subject: add a catalyst app to tests --- t/lib/TestApp/Controller/Root.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 t/lib/TestApp/Controller/Root.pm (limited to 't/lib/TestApp/Controller') 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; -- cgit 1.4.1