X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FTest%2FCatalyst%2FAction%2FREST%2FController%2FSerialize.pm;h=4894c024aedcfa67fe3456d5b986591818c6806e;hb=0d86eca689a3c82e604464aafd6984e2f908b7e4;hp=c4111dadb58d7f79104c558e21314c518ebc6c08;hpb=9d3bee45561e72bc5f859bf1fc2d8164519b7c5a;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git diff --git a/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm b/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm index c4111da..4894c02 100644 --- a/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm +++ b/t/lib/Test/Catalyst/Action/REST/Controller/Serialize.pm @@ -7,7 +7,6 @@ use base 'Catalyst::Controller'; __PACKAGE__->config( 'default' => 'text/x-yaml', 'stash_key' => 'rest', - 'content_type_stash_key' => 'serialize_content_type', 'map' => { 'text/x-yaml' => 'YAML', 'application/json' => 'JSON', @@ -25,6 +24,7 @@ sub test :Local :ActionClass('Serialize') { sub test_second :Local :ActionClass('Serialize') { my ( $self, $c ) = @_; + # 'serialize_content_type' is configured in the test config in t/conf $c->stash->{'serialize_content_type'} = $c->req->params->{'serialize_content_type'}; $c->stash->{'rest'} = { lou => 'is my cat',