Less crap in MANIFEST please
[catagits/Catalyst-Action-REST.git] / t / catalyst-controller-rest.t
CommitLineData
0ba73721 1use strict;
2use warnings;
3use Test::More tests => 2;
4use YAML::Syck;
5use FindBin;
6
7use lib ("$FindBin::Bin/lib", "$FindBin::Bin/../lib", "$FindBin::Bin/broken");
8use Test::Rest;
9
10my $t = Test::Rest->new(content_type => 'text/x-yaml');
11
12use_ok 'Catalyst::Test', 'Test::Catalyst::Action::REST';
13
14my $data = { your => 'face' };
15is_deeply(
16 Load(
17 request($t->put(url => '/rest/test', data => Dump($data)))->content
18 ),
19 { test => 'worked', data => $data },
20 'round trip (deserialize/serialize)',
21);