projects
/
catagits/Catalyst-Action-REST.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Remove not_implemented from the list of allowed methods
[catagits/Catalyst-Action-REST.git]
/
t
/
lib
/
Test
/
Catalyst
/
Action
/
REST
/
Controller
/
REST.pm
diff --git
a/t/lib/Test/Catalyst/Action/REST/Controller/REST.pm
b/t/lib/Test/Catalyst/Action/REST/Controller/REST.pm
index
ad168c1
..
c91c42f
100644
(file)
--- a/
t/lib/Test/Catalyst/Action/REST/Controller/REST.pm
+++ b/
t/lib/Test/Catalyst/Action/REST/Controller/REST.pm
@@
-83,4
+83,11
@@
sub opts_GET {
$self->status_ok( $c, entity => { opts => 'worked' } );
}
+sub opts_not_implemented {
+ my ( $self, $c ) = @_;
+ $c->res->status(405);
+ $c->res->header('Allow' => [qw(GET HEAD)]);
+ $c->res->body('Not implemented');
+}
+
1;