From: Robery Buels Date: Thu, 13 Oct 2011 21:13:09 +0000 (+0000) Subject: add host-with-port test in the only test that has an external server X-Git-Tag: 0.56~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FTest-WWW-Mechanize-Catalyst.git;a=commitdiff_plain;h=64c13f8ec0dbc19d03972d7bfb39ac89e558cddc add host-with-port test in the only test that has an external server --- diff --git a/t/multi_content_type.t b/t/multi_content_type.t index 521f463..4fb0a25 100644 --- a/t/multi_content_type.t +++ b/t/multi_content_type.t @@ -10,7 +10,7 @@ BEGIN { $ENV{CATALYST_SERVER} ||= "http://localhost:$PORT"; } -use Test::More tests => 8; +use Test::More tests => 9; use Test::Exception; BEGIN { @@ -42,7 +42,7 @@ TRY_CONNECT: { } SKIP: { - skip $skip, 7 if $skip; + skip $skip, 8 if $skip; lives_ok { $m->get_ok( '/', 'Get a multi Content-Type response' ) } 'Survive to a multi Content-Type sting'; @@ -53,6 +53,10 @@ SKIP: { # Test a redirect with a remote server now too. $m->get_ok( '/hello' ); is($m->uri, "$ENV{CATALYST_SERVER}/"); + + $m->get_ok( '/host' ); + $m->content_contains('Host: localhost:$PORT') or diag $m->content; + } END {