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%2FDeserialize.pm;fp=t%2Flib%2FTest%2FCatalyst%2FAction%2FREST%2FController%2FDeserialize.pm;h=0000000000000000000000000000000000000000;hp=d7723e27da94c4be1febecafa6d2daf258953cdd;hb=79025f72c27ba313b3c701cee238f84166f32f9e;hpb=f10c7e1c7eb3b4cb10401dbb86ca8db3dc38ced2 diff --git a/t/lib/Test/Catalyst/Action/REST/Controller/Deserialize.pm b/t/lib/Test/Catalyst/Action/REST/Controller/Deserialize.pm deleted file mode 100644 index d7723e2..0000000 --- a/t/lib/Test/Catalyst/Action/REST/Controller/Deserialize.pm +++ /dev/null @@ -1,32 +0,0 @@ -package Test::Catalyst::Action::REST::Controller::Deserialize; -use Moose; -use namespace::autoclean; - -BEGIN { extends 'Catalyst::Controller' } - -__PACKAGE__->config( - 'action_args' => { - 'test_action_args' => { - 'deserialize_http_methods' => [qw(POST PUT OPTIONS DELETE GET)] - } - }, - 'stash_key' => 'rest', - 'map' => { - 'text/x-yaml' => 'YAML', - 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ], - 'text/broken' => 'Broken', - }, -); - - -sub test :Local :ActionClass('Deserialize') { - my ( $self, $c ) = @_; - $c->res->output($c->req->data->{'kitty'}); -} - -sub test_action_args :Local :ActionClass('Deserialize') { - my ( $self, $c ) = @_; - $c->res->output($c->req->data->{'kitty'}); -} - -1;