X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Futf8.t;h=935dc03de3c94b63d44296afa44eebd8ae12e540;hb=8b7d5e5b2ba08d5301b186b9cb42e7fff3d3d6b8;hp=94e024998b2a31f47a883bf55c171f2740645d78;hpb=3758cdf99314353b50f1ed1f5920d370d9412264;p=catagits%2FCatalyst-View-TT.git diff --git a/t/utf8.t b/t/utf8.t index 94e0249..935dc03 100644 --- a/t/utf8.t +++ b/t/utf8.t @@ -1,8 +1,7 @@ use utf8; use warnings; use strict; -use Test::More; -use Encode 2.21 'decode_utf8'; +use Test::More 0.88; use File::Spec; { @@ -36,7 +35,7 @@ use Catalyst::Test 'MyApp'; if(MyApp->can('encoding') and MyApp->can('clear_encoding') ) { ok my $res = request '/root/♥'; is $res->code, 200, 'OK'; - is decode_utf8($res->content), "

This heart literal ♥

This is heart var ♥♥♥

\n", 'correct body'; + is $res->decoded_content, "

This heart literal ♥

This is heart var ♥♥♥

\n", 'correct body'; is $res->content_charset, 'UTF-8'; } else { ok 1, 'Skipping the UTF8 Tests for older installed catalyst';