X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git;a=blobdiff_plain;f=t%2Flib%2FTest%2FCatalyst%2FAction%2FREST%2FController%2FActions.pm;fp=t%2Flib%2FTest%2FCatalyst%2FAction%2FREST%2FController%2FActions.pm;h=0000000000000000000000000000000000000000;hp=905b700c195a0896107dee4d4dbae18e0dc18dd5;hb=79025f72c27ba313b3c701cee238f84166f32f9e;hpb=f10c7e1c7eb3b4cb10401dbb86ca8db3dc38ced2 diff --git a/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm b/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm deleted file mode 100644 index 905b700..0000000 --- a/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm +++ /dev/null @@ -1,83 +0,0 @@ -package Test::Catalyst::Action::REST::Controller::Actions; -use Moose; -use namespace::autoclean; - -BEGIN { extends qw/Catalyst::Controller::REST/ } - -__PACKAGE__->_action_class('Test::Action::Class'); - -sub begin {} # Don't need serialization.. - -sub test : Local : ActionClass('+Catalyst::Action::REST') { - my ( $self, $c ) = @_; - $c->res->header('X-Was-In-TopLevel', 1); -} - -sub test_GET : Private { - my ( $self, $c ) = @_; - $c->res->body('GET'); -} - -sub test_POST : Action { - my ( $self, $c ) = @_; - $c->res->body('POST'); -} - -sub test_PUT :ActionClass('+Test::Action::Class::Sub') { - my ( $self, $c ) = @_; - $c->res->body('PUT'); -} - -sub test_DELETE : Local { - my ( $self, $c ) = @_; - $c->res->body('DELETE'); -} - -sub test_OPTIONS : Path('foobar') { - my ( $self, $c ) = @_; - - $c->res->body('OPTIONS'); -} - -sub other_test :Local :ActionClass('+Catalyst::Action::REST') { - my ( $self, $c ) = @_; - $c->res->header('X-Was-In-TopLevel', 1); -} - -sub other_test_GET { - my ( $self, $c ) = @_; - $c->res->body('GET'); -} - -sub other_test_POST { - my ( $self, $c ) = @_; - $c->res->body('POST'); -} - -sub other_test_PUT :ActionClass('+Test::Action::Class::Sub') { - my ( $self, $c ) = @_; - $c->res->body('PUT'); -} - -sub other_test_DELETE { - my ( $self, $c ) = @_; - $c->res->body('DELETE'); -} - -sub other_test_OPTIONS { - my ( $self, $c ) = @_; - - $c->res->body('OPTIONS'); -} - -sub yet_other_test : Local : ActionClass('+Catalyst::Action::REST') {} - -sub yet_other_test_POST { - my ( $self, $c ) = @_; - $c->res->body('POST'); -} - -sub end : Private {} # Don't need serialization.. - -1; -