Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f68a82f774 | ||
|
|
cb908430e5 | ||
|
|
7cd976ea79 | ||
|
|
1708622c49 |
@@ -2,6 +2,12 @@ Revision history for Mojolicious::Plugin::TtRenderer
|
|||||||
|
|
||||||
{{$NEXT}}
|
{{$NEXT}}
|
||||||
|
|
||||||
|
1.42 February 24, 2013
|
||||||
|
- fix for test on solaris
|
||||||
|
|
||||||
|
1.41 February 23, 2013
|
||||||
|
- Additional testing diagnostics
|
||||||
|
|
||||||
1.40 February 20, 2013
|
1.40 February 20, 2013
|
||||||
- Added diagnostic for IO loop implementation in testing
|
- Added diagnostic for IO loop implementation in testing
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ use Test::More tests => 6;
|
|||||||
use Test::Mojo;
|
use Test::Mojo;
|
||||||
|
|
||||||
use Mojolicious::Lite;
|
use Mojolicious::Lite;
|
||||||
plugin 'tt_renderer';
|
plugin 'tt_renderer' => { template_options => { COMPILE_DIR => tempdir( CLEANUP => 1 ) } };
|
||||||
app->renderer->default_handler('tt');
|
app->renderer->default_handler('tt');
|
||||||
|
|
||||||
get '/' => sub {
|
get '/' => sub {
|
||||||
@@ -21,11 +21,14 @@ $t->get_ok('/')
|
|||||||
->status_is(500)
|
->status_is(500)
|
||||||
->content_like(qr{foo});
|
->content_like(qr{foo});
|
||||||
|
|
||||||
|
$t->app->log->on(message => sub {
|
||||||
|
my($log, $level, @lines) = @_;
|
||||||
|
diag @lines if $level eq 'error';
|
||||||
|
});
|
||||||
|
|
||||||
$t->get_ok('/bar')
|
$t->get_ok('/bar')
|
||||||
->status_is(200)
|
->status_is(200)
|
||||||
->content_like(qr{bar});
|
->content_like(qr{sometimes, the bar,});
|
||||||
|
|
||||||
#note $t->tx->res->to_string;
|
|
||||||
|
|
||||||
__DATA__
|
__DATA__
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user