X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Futf8.t;h=935dc03de3c94b63d44296afa44eebd8ae12e540;hb=8b7d5e5b2ba08d5301b186b9cb42e7fff3d3d6b8;hp=ed7cb1ce9988e8dbe6c352f0ef8c52dcdf227660;hpb=2c6b647573f44747677c48176defa0ac3212e2de;p=catagits%2FCatalyst-View-TT.git diff --git a/t/utf8.t b/t/utf8.t index ed7cb1c..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', 'encode_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';