[Catalyst-commits] r14039 - HTTP-Request-AsCGI/trunk/t

rbuels at dev.catalyst.perl.org rbuels at dev.catalyst.perl.org
Wed Jun 8 22:35:53 GMT 2011


Author: rbuels
Date: 2011-06-08 22:35:52 +0000 (Wed, 08 Jun 2011)
New Revision: 14039

Modified:
   HTTP-Request-AsCGI/trunk/t/06response.t
Log:
make broken-headerless-CGI content-length test a little more illustrative

Modified: HTTP-Request-AsCGI/trunk/t/06response.t
===================================================================
--- HTTP-Request-AsCGI/trunk/t/06response.t	2011-06-08 22:30:19 UTC (rev 14038)
+++ HTTP-Request-AsCGI/trunk/t/06response.t	2011-06-08 22:35:52 UTC (rev 14039)
@@ -46,8 +46,14 @@
 
     $c->setup;
 
-    print "Look at me I am crappy and don't have any headers.";
+    print <<EOT;
 
+Look at me I am crappy and don't have any headers.
+
+But I have newlines and stuff.  Oh yes.
+
+EOT
+
     $response = $c->restore->response;
 }
 
@@ -55,6 +61,6 @@
 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' );




More information about the Catalyst-commits mailing list