Compare commits
2 Commits
release/1.
...
release/1.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6146b1f2f5 | ||
|
|
5116c191f3 |
3
Changes
3
Changes
@@ -1,6 +1,9 @@
|
||||
Revision history for Mojolicious::Plugin::TtRenderer
|
||||
|
||||
{{$NEXT}}
|
||||
- Set locale "C" in tests that rely on it
|
||||
|
||||
1.30 December 22, 2012
|
||||
- Don't rely on English locale in the test t/tt_plugin_lite_app.t
|
||||
|
||||
1.29 December 18, 2012
|
||||
|
||||
@@ -5,6 +5,18 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
BEGIN {
|
||||
#use if $^O ne 'MSWin32', POSIX => qw/setlocale LC_ALL/;
|
||||
#setlocale(&LC_ALL, 'C') if $^O ne 'MSWin32';
|
||||
unless($^O eq 'MSWin32') {
|
||||
eval q{
|
||||
use POSIX qw( setlocale LC_ALL );
|
||||
setlocale(LC_ALL, 'C');
|
||||
};
|
||||
warn $@ if $@;
|
||||
}
|
||||
}
|
||||
|
||||
use File::Temp;
|
||||
use Mojo::IOLoop;
|
||||
use Test::More;
|
||||
@@ -41,7 +53,7 @@ my $t = Test::Mojo->new;
|
||||
# Simple TT template
|
||||
$t->get_ok('/')->status_is(200)
|
||||
->content_like(qr/test123456/);
|
||||
$t->get_ok('/blow')->status_is(500)->content_like(qr/file error - doesnotexist.tt:/);
|
||||
$t->get_ok('/blow')->status_is(500)->content_like(qr/file error - doesnotexist\.tt: No such file or directory/);
|
||||
|
||||
if(eval q{ use Devel::Cycle; 1 })
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user