summaryrefslogtreecommitdiffstats
path: root/t/basic.t
diff options
context:
space:
mode:
Diffstat (limited to 't/basic.t')
-rw-r--r--t/basic.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/basic.t b/t/basic.t
index a7f66b4..d73f691 100644
--- a/t/basic.t
+++ b/t/basic.t
@@ -21,7 +21,7 @@ test_psgi
{
my $res = $cb->(GET '/index.html');
ok($res->is_success) || diag($res->content);
- is($res->content, <<'CONTENT');
+ my $rendered = <<'CONTENT';
<!DOCTYPE html>
<html>
<head>
@@ -33,6 +33,8 @@ test_psgi
</body>
</html>
CONTENT
+ is($res->content, $rendered);
+ is($res->header('Content-Length'), length($rendered));
}
{