Merged 5.49_01 (r1339) from refactored branch to trunk
[catagits/Catalyst-Runtime.git] / t / live / component / controller / action / streaming.t
diff --git a/t/live/component/controller/action/streaming.t b/t/live/component/controller/action/streaming.t
new file mode 100644 (file)
index 0000000..46d42b2
--- /dev/null
@@ -0,0 +1,21 @@
+#!perl
+
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/../../../lib";
+
+use Test::More tests => 4;
+use Catalyst::Test 'TestApp';
+
+{
+    ok( my $response = request('http://localhost/streaming'), 'Request' );
+    ok( $response->is_success, 'Response Successful 2xx' );
+    is( $response->content_type, 'text/plain', 'Response Content-Type' );
+    is( $response->content,, <<'EOF', 'Content is a stream' );
+foo
+bar
+baz
+EOF
+}