From: Rafael Kitover Date: Thu, 19 May 2011 06:57:10 +0000 (-0400) Subject: support CRLF in tests X-Git-Tag: 0.031~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-WrapCGI.git;a=commitdiff_plain;h=6c725e0b97ac472fd657ee11e39a824863405695 support CRLF in tests --- diff --git a/t/cgibin.t b/t/cgibin.t index 39f0fd8..0e8179d 100644 --- a/t/cgibin.t +++ b/t/cgibin.t @@ -62,7 +62,7 @@ is($response->content, 'foo:bar bar:baz', 'POST to Perl CGI File through a forward via cgi_action'); $response = request '/my-bin/path/testdata.pl'; -is($response->content, "testing\n", +like($response->content, qr/^testing\r?\n\z/, 'scripts with __DATA__ sections work'); $response = request '/my-bin/pathinfo.pl/path/info';