change regex to fix test

This commit is contained in:
Graham Ollis
2013-07-26 05:58:36 -04:00
parent b2062785db
commit ab7117d632
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
Revision history for Mojolicious::Plugin::TtRenderer
{{$NEXT}}
- Template-Toolkit 2.25 compatability
1.46 May 19, 2013
- Mojolicious 4.0 compatability

View File

@@ -51,7 +51,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: No such file or directory/);
$t->get_ok('/blow')->status_is(500)->content_like(qr/file error - (templates\/)?doesnotexist\.tt: (No such file or directory|not found)/);
if(eval q{ use Devel::Cycle; 1 })
{