Test fixes - how did this ever pass before?
Tomas Doran [Sat, 30 Jun 2012 15:55:02 +0000 (16:55 +0100)]
t/lib/ExternalCatty/Controller/Root.pm
t/multi_content_type.t

index 882b81d..0409a7a 100644 (file)
@@ -33,5 +33,14 @@ sub html {
 ];
 }
 
+sub host : Global {
+    my ($self, $c) = @_;
+
+    my $host = $c->req->header('Host') || "<undef>";
+    my $html = html( $c->config->{name}, "Host: $host" );
+    $c->response->content_type("text/html");
+    $c->response->output($html);
+}
+
 1;
 
index 097dce9..47cba51 100644 (file)
@@ -60,7 +60,7 @@ SKIP: {
   is($m->uri, "$ENV{CATALYST_SERVER}/");
 
   $m->get_ok( '/host' );
-  $m->content_contains('Host: localhost:$PORT') or diag $m->content;
+  $m->content_contains("Host: localhost:$PORT") or diag $m->content;
 
 }