oh my god, its full of tiny version numbers
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST / Controller / REST.pm
index ad168c1..08bcdf0 100644 (file)
@@ -5,6 +5,12 @@ use namespace::autoclean;
 
 BEGIN { extends 'Catalyst::Controller::REST' }
 
+__PACKAGE__->config(
+  'map' => {
+    'text/html'          => 'YAML::HTML',
+    'text/x-yaml'        => 'YAML',
+});
+
 sub test : Local {
     my ( $self, $c ) = @_;
     $self->status_ok( $c,
@@ -83,4 +89,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;