Skip to content

Commit

Permalink
better Mojo::Template encoding test
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 20, 2012
1 parent 86c6ec0 commit e3cb485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/mojo/template.t
Expand Up @@ -17,7 +17,7 @@ use Mojo::Base -strict;

use utf8;

use Test::More tests => 199;
use Test::More tests => 200;

# "When I held that gun in my hand, I felt a surge of power...
# like God must feel when he's holding a gun."
Expand Down Expand Up @@ -1070,5 +1070,5 @@ $mt = Mojo::Template->new(encoding => 'ISO-8859-1');
$file = catfile $dir, 'test3.mt';
is $mt->render_to_file('ü', $file), undef, 'file rendered';
$mt = Mojo::Template->new(encoding => 'UTF-8');
eval { $mt->render_file($file) };
ok !eval { $mt->render_file($file) }, 'file not rendered';
like $@, qr/invalid encoding/, 'right error';

0 comments on commit e3cb485

Please sign in to comment.