Unfuck tests
Tomas Doran [Sun, 13 May 2012 20:05:22 +0000 (20:05 +0000)]
t/lib/Catty/Controller/Root.pm

index 77a2825..17498fd 100644 (file)
@@ -121,7 +121,7 @@ sub gzipped : Global {
   # control both ends, so just always gzip the response.
     require Compress::Zlib;
 
-    my $html = html( "Hello", "Hi there! ☺" );
+    my $html = Encode::encode('UTF-8', html( "Hello", "Hi there! ☺" ));
     $c->response->content_type("text/html; charset=utf-8");
     $c->response->output( Compress::Zlib::memGzip($html) );
     $c->response->content_encoding('gzip');