Remove not_implemented from the list of allowed methods
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST / Controller / REST.pm
index 63fdea1..c91c42f 100644 (file)
@@ -76,4 +76,18 @@ sub test_status_gone : Local {
         message => "Document have been deleted by foo", );
 }
 
+sub opts : Local ActionClass('REST') {}
+
+sub opts_GET {
+    my ( $self, $c ) = @_;
+    $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;