X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Funit_response.t;h=31e397a0603794479050ad0c706161bd692a3fcc;hb=c68a3c90180235a2a464ce237a96fef79db468bf;hp=4d2317c2bf69d238b70978b4008df489654aa468;hpb=aa9e8261400e411d782e3ecde92b2bcab593c181;p=catagits%2FCatalyst-Runtime.git diff --git a/t/unit_response.t b/t/unit_response.t index 4d2317c..31e397a 100644 --- a/t/unit_response.t +++ b/t/unit_response.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More tests => 4; +use Test::More tests => 6; use_ok('Catalyst::Response'); @@ -12,3 +12,7 @@ is($res->code, 500, 'code sets itself'); is($res->status, 500, 'code sets status'); $res->status(501); is($res->code, 501, 'status sets code'); +is($res->body, '', "default response body ''"); +$res->body(undef); +is($res->body, '', "response body '' after assigned undef"); +