Compare commits

...
Author SHA1 Message Date
Graham Ollis 380cea8aa2 v1.40
- Added diagnostic for IO loop implementation in testing
2013-02-20 13:42:06 -05:00
Graham Ollis 9217818ad2 diagnostic for IO loop used during testing. 2013-02-20 13:41:16 -05:00
Graham Ollis 02fce2bfdd simplify 2013-01-28 11:51:38 -05:00
3 changed files with 22 additions and 10 deletions
+3
View File
@@ -2,6 +2,9 @@ Revision history for Mojolicious::Plugin::TtRenderer
{{$NEXT}}
1.40 February 20, 2013
- Added diagnostic for IO loop implementation in testing
1.39 January 28, 2013
- Documentation updates.
+8 -10
View File
@@ -42,18 +42,16 @@ sub _init {
# take and process options :-)
my @renderer_paths = $app ? map { abs_path($_) } grep { -d $_ } @{ $app->renderer->paths } : ();
push @renderer_paths, 'templates';
my %config = (
( @renderer_paths > 0
? (INCLUDE_PATH => [@renderer_paths, 'templates'])
: (INCLUDE_PATH => ['templates'])
),
COMPILE_EXT => '.ttc',
COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)),
UNICODE => 1,
ENCODING => 'utf-8',
CACHE_SIZE => 128,
RELATIVE => 1,
INCLUDE_PATH => \@renderer_paths,
COMPILE_EXT => '.ttc',
COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)),
UNICODE => 1,
ENCODING => 'utf-8',
CACHE_SIZE => 128,
RELATIVE => 1,
%{$args{template_options} || {}},
);
+11
View File
@@ -0,0 +1,11 @@
use strict;
use warnings;
use Test::More tests => 1;
use Mojo::IOLoop;
my $loop = eval { Mojo::IOLoop->singleton };
diag $@ if $@;
ok $loop;
diag ref eval { $loop->reactor };
diag $@ if $@;