From: Tomas Doran Date: Wed, 19 Jan 2011 00:43:18 +0000 (+0000) Subject: Merge arcanez stuff and mine X-Git-Tag: 0.89~19 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad995b48033f9bc3131fe5b34b86db7e2e94f641;hp=a9e5f3d2aa58a89ffd70ec22a5485fdbd4b7a3d6;p=catagits%2FCatalyst-Action-REST.git Merge arcanez stuff and mine --- diff --git a/t/catalyst-action-serialize.t b/t/catalyst-action-serialize.t index dfdbcec..ffaf231 100644 --- a/t/catalyst-action-serialize.t +++ b/t/catalyst-action-serialize.t @@ -1,5 +1,6 @@ use strict; use warnings; + use Test::More 0.88; use Data::Serializer; use FindBin; @@ -35,6 +36,7 @@ $res2 = request($t->get(url => '/serialize/test_second')); ok( $res2->is_success, 'request succeeded (deprecated config)' ); is( $res2->content, "{'lou' => 'is my cat'}", "request returned proper data"); + $res = request($t->get(url => '/serialize/empty_serialized')); is $res->content, q[{'foo' => 'bar'}], 'normal case ok'; ok $res->header('Content-Length'), 'set content-length when we serialize'; @@ -48,4 +50,3 @@ is $res->content, '', "body explicitly set to '' results in '' content"; ok !$res->header('Content-Length'), "body explicitly set to '' - no automatic content-length"; done_testing; -