Revision history for Perl module Test::WWW::Mechanize::Catalyst:
+ - Fix tests to work with the upcoming psgi based Catalyst release
+ as $c->req->header('Host') now more accurately reflects what you
+ see in a real web server (i.e. the port will not be defined if it
+ is 80)
+ - Fix tests to work when the CATALYST_DEBUG environment variable is
+ set by explicitly setting it to 0 in tests which require it.
+
0.52 Mon Mar 8 01:25 GMT 2010
- Move actions out of the test applications to avoid deprecation warnings.
- POD corrections by jhannah
use Encode qw();
use Test::More tests => 37;
use lib 't/lib';
+BEGIN {
+ $ENV{CATALYST_DEBUG} = 0;
+ $ENV{CATTY_DEBUG} = 0;
+}
use Test::WWW::Mechanize::Catalyst 'Catty';
my $root = "http://localhost";
$m->host('foo.com');
$m->get_ok('/host');
-$m->content_contains('Host: foo.com:80');
+$m->content_contains('Host: foo.com');
$m->clear_host;
$m->get_ok('/host');
-$m->content_contains('Host: localhost:80') or diag $m->content;
+$m->content_contains('Host: localhost') or diag $m->content;