Add tests which should fail, but don't.
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST / Controller / Deserialize.pm
1 package Test::Catalyst::Action::REST::Controller::Deserialize;
2 use Moose;
3 use namespace::autoclean;
4
5 BEGIN { extends 'Catalyst::Controller' }
6
7 __PACKAGE__->config(
8     'stash_key' => 'rest',
9     'map'       => {
10         'text/x-yaml'        => 'YAML',
11         'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
12         'text/broken'        => 'Broken',
13     },
14 );
15
16
17 sub test :Local :ActionClass('Deserialize') {
18     my ( $self, $c ) = @_;
19     $c->res->output($c->req->data->{'kitty'});
20 }
21
22 1;