Fixed binmode call in helper
[catagits/Catalyst-Runtime.git] / t / live / component / controller / action / streaming.t
CommitLineData
fbcc39ad 1#!perl
2
3use strict;
4use warnings;
5
6use FindBin;
7use lib "$FindBin::Bin/../../../lib";
8
9use Test::More tests => 4;
10use Catalyst::Test 'TestApp';
11
12{
13 ok( my $response = request('http://localhost/streaming'), 'Request' );
14 ok( $response->is_success, 'Response Successful 2xx' );
15 is( $response->content_type, 'text/plain', 'Response Content-Type' );
16 is( $response->content,, <<'EOF', 'Content is a stream' );
17foo
18bar
19baz
20EOF
21}