X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F06response.t;h=f0c6a1a41aea9254a6357c65e5f8de1ee8833b2e;hb=f1f11f0e89e132a8b9fb928f82f18297a92a1a01;hp=c61034a9cd533bbac4807d18e0e60aa780c85166;hpb=292e2b640321653dbbca0a5f04a5767eed54d085;p=catagits%2FHTTP-Request-AsCGI.git diff --git a/t/06response.t b/t/06response.t index c61034a..f0c6a1a 100644 --- a/t/06response.t +++ b/t/06response.t @@ -46,7 +46,13 @@ is_deeply( [ $response->header('X-Field') ], [ 1, 2 ], 'Response Header X-Field' $c->setup; - print "Look at me I am crappy and don't have any headers."; + print <restore->response; } @@ -55,6 +61,6 @@ isa_ok( $response, 'HTTP::Response' ); is( $response->code, 200, 'Response Code' ); is( $response->message, 'OK', 'Response Message' ); is( $response->protocol, 'HTTP/1.1', 'Response Protocol' ); -is( $response->content, "Look at me I am crappy and don't have any headers.", 'Response Content' ); -is( $response->content_length, 50, 'Response Content-Length is right!' ); +like( $response->content, qr/Oh yes/, 'Response Content' ); +is( $response->content_length, 93, 'Response Content-Length is right!' ); is( $response->content_type, '', 'Response Content-Type is blank' );