X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=blobdiff_plain;f=t%2Fcatalyst-action-serialize-accept.t;fp=t%2Fcatalyst-action-serialize-accept.t;h=8303a8727149bf3b13fe44d70b713ea4ac891a4c;hp=64732f510892e5af70edb5730860713c9662ab34;hb=1bb213fc84712fcc13431f4e48b0d0ad74aa7dc3;hpb=f10c7e1c7eb3b4cb10401dbb86ca8db3dc38ced2 diff --git a/t/catalyst-action-serialize-accept.t b/t/catalyst-action-serialize-accept.t index 64732f5..8303a87 100644 --- a/t/catalyst-action-serialize-accept.t +++ b/t/catalyst-action-serialize-accept.t @@ -73,21 +73,6 @@ SKIP: { is( $res->header('Content-type'), 'text/x-yaml', '... with expected content-type') } -# Make sure that when using content_type_stash_key, a valid value in the stash gets priority. -# This also tests that application-level config is properly passed to -# individual controllers; see t/lib/Test/Catalyst/Action/REST.pm -{ - my $req = $t->get(url => - '/serialize/test_second?serialize_content_type=text/x-data-dumper' - ); - $req->remove_header('Content-Type'); - $req->header('Accept', '*/*'); - my $res = request($req); - ok( $res->is_success, 'GET the serialized request succeeded' ); - is( $res->content, "{'lou' => 'is my cat'}", "Request returned proper data"); - is( $res->header('Content-type'), 'text/x-data-dumper', '... with expected content-type') -} - # Make sure that the default content type you specify really gets used. { my $req = $t->get(url => '/override/test');