Add tests which should fail, but don't.
[catagits/Catalyst-Action-REST.git] / t / lib / Test / Catalyst / Action / REST / Controller / Deserialize.pm
CommitLineData
c5c27d42 1package Test::Catalyst::Action::REST::Controller::Deserialize;
930013e6 2use Moose;
3use namespace::autoclean;
ffb4cc71 4
930013e6 5BEGIN { extends 'Catalyst::Controller' }
ffb4cc71 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
17sub test :Local :ActionClass('Deserialize') {
18 my ( $self, $c ) = @_;
19 $c->res->output($c->req->data->{'kitty'});
20}
21
221;