stop using Moo as a test package
[catagits/Catalyst-Runtime.git] / t / aggregate / live_engine_response_emptybody.t
CommitLineData
bcc7361a 1use strict;
2use warnings;
3
4use FindBin;
5use lib "$FindBin::Bin/../lib";
6
7use Test::More;
8use Catalyst::Test 'TestApp';
9
10# body '0'
11{
12 my $res = request('/zerobody');
13 is $res->content, '0';
14 is $res->header('Content-Length'), '1';
15}
16
17# body ''
18{
19 my $res = request('/emptybody');
20 is $res->content, '';
46fff667 21
22 SKIP: {
23 skip "content-length for body of '' is now server dependent", 1;
24 ok !defined $res->header('Content-Length');
25 }
bcc7361a 26}
27
28done_testing;
29