Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6146b1f2f5 | ||
|
|
5116c191f3 |
@@ -1,6 +1,9 @@
|
|||||||
Revision history for Mojolicious::Plugin::TtRenderer
|
Revision history for Mojolicious::Plugin::TtRenderer
|
||||||
|
|
||||||
{{$NEXT}}
|
{{$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
|
- Don't rely on English locale in the test t/tt_plugin_lite_app.t
|
||||||
|
|
||||||
1.29 December 18, 2012
|
1.29 December 18, 2012
|
||||||
|
|||||||
+13
-1
@@ -5,6 +5,18 @@
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
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 File::Temp;
|
||||||
use Mojo::IOLoop;
|
use Mojo::IOLoop;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
@@ -41,7 +53,7 @@ my $t = Test::Mojo->new;
|
|||||||
# Simple TT template
|
# Simple TT template
|
||||||
$t->get_ok('/')->status_is(200)
|
$t->get_ok('/')->status_is(200)
|
||||||
->content_like(qr/test123456/);
|
->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 })
|
if(eval q{ use Devel::Cycle; 1 })
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user