X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTest%2FCatalyst%2FAction%2FREST%2FController%2FActions.pm;h=2e91a352120106301ed2d9c8286e394504ab6bac;hb=5213846dc53c8fdcb6de11243fad7e40378624e7;hp=596e4e0a9fba97c989f3e74664452b992aa2a6f4;hpb=5f46184580aa24517de4f62eb65dd9a5275d4551;p=catagits%2FCatalyst-Action-REST.git diff --git a/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm b/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm index 596e4e0..2e91a35 100644 --- a/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm +++ b/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm @@ -1,8 +1,8 @@ package Test::Catalyst::Action::REST::Controller::Actions; -use strict; -use warnings; +use Moose; +use namespace::autoclean; -use base qw/Catalyst::Controller::REST/; +BEGIN { extends qw/Catalyst::Controller::REST/ } __PACKAGE__->_action_class('Test::Action::Class'); @@ -23,7 +23,7 @@ sub test_POST : Action { $c->res->body('POST'); } -sub test_PUT :ActionClass('+Test::Action::Class') { +sub test_PUT :ActionClass('+Test::Action::Class::Sub') { my ( $self, $c ) = @_; $c->res->body('PUT'); }