X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.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=86210fb610d3c7d9d728d88afe54a79e6c0e6026;hp=2e91a352120106301ed2d9c8286e394504ab6bac;hb=3c4306f26628d82044c933aa391c346440fdfcdf;hpb=40de934ce925aa9fbf1d2fa15846b5c0de9ec790 diff --git a/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm b/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm index 2e91a35..86210fb 100644 --- a/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm +++ b/t/lib/Test/Catalyst/Action/REST/Controller/Actions.pm @@ -39,6 +39,37 @@ sub test_OPTIONS : Path('foobar') { $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 end : Private {} # Don't need serialization.. 1;