Checking HTTP status code in TT render error test

This commit is contained in:
Matthias Bethke
2012-05-18 00:37:18 -06:00
parent 989ea57cf9
commit 92bb64406b
+1 -1
View File
@@ -41,7 +41,7 @@ my $t = Test::Mojo->new;
# Simple TT template
$t->get_ok('/')->status_is(200)
->content_like(qr/test123456/);
$t->get_ok('/blow')->content_like(qr/file error - doesnotexist.tt: No such file or directory/);
$t->get_ok('/blow')->status_is(500)->content_like(qr/file error - doesnotexist.tt: No such file or directory/);
eval "
use Devel::Cycle 'find_cycle';