Added failing tests for embedded forward
[catagits/Catalyst-Runtime.git] / t / live / component / controller / action / streaming.t
1 #!perl
2
3 use strict;
4 use warnings;
5
6 use FindBin;
7 use lib "$FindBin::Bin/../../../lib";
8
9 use Test::More tests => 4;
10 use 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' );
17 foo
18 bar
19 baz
20 EOF
21 }