call decoded_content, instead of decoding manually
Karen Etheridge [Tue, 13 Dec 2016 18:51:07 +0000 (10:51 -0800)]
t/utf8.t

index 94e0249..7d97667 100644 (file)
--- a/t/utf8.t
+++ b/t/utf8.t
@@ -2,7 +2,6 @@ use utf8;
 use warnings;
 use strict;
 use Test::More;
-use Encode 2.21 'decode_utf8';
 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), "<p>This heart literal ♥</p><p>This is heart var ♥♥♥</p>\n", 'correct body';
+  is $res->decoded_content, "<p>This heart literal ♥</p><p>This is heart var ♥♥♥</p>\n", 'correct body';
   is $res->content_charset, 'UTF-8';
 } else {
   ok 1, 'Skipping the UTF8 Tests for older installed catalyst';