Catalyst-View-TT

 view release on metacpan or  search on metacpan

t/utf8.t  view on Meta::CPAN

  use Catalyst;

  MyApp->setup;
}

use Catalyst::Test 'MyApp';

if(MyApp->can('encoding') and MyApp->can('clear_encoding') ) {
  ok my $res = request '/root/♥';
  is $res->code, 200, 'OK';
  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';
}

done_testing;



( run in 0.505 second using v1.01-cache-2.11-cpan-26ccb49234f )