Trying to unfuck this branch
[catagits/Catalyst-Runtime.git] / t / live_engine_request_body.t
diff --git a/t/live_engine_request_body.t b/t/live_engine_request_body.t
deleted file mode 100644 (file)
index 06198f0..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-#!perl
-
-use strict;
-use warnings;
-
-use FindBin;
-use lib "$FindBin::Bin/lib";
-
-use Test::More tests => 18;
-use Catalyst::Test 'TestApp';
-
-use Catalyst::Request;
-use HTTP::Headers;
-use HTTP::Request::Common;
-
-{
-    my $creq;
-
-    my $request = POST(
-        'http://localhost/dump/request/',
-        'Content-Type' => 'text/plain',
-        'Content'      => 'Hello Catalyst'
-    );
-
-    ok( my $response = request($request), 'Request' );
-    ok( $response->is_success, 'Response Successful 2xx' );
-    is( $response->content_type, 'text/plain', 'Response Content-Type' );
-    like( $response->content, qr/'Catalyst::Request'/,
-        'Content is a serialized Catalyst::Request' );
-
-    {
-        no strict 'refs';
-        ok(
-            eval '$creq = ' . $response->content,
-            'Unserialize Catalyst::Request'
-        );
-    }
-
-    isa_ok( $creq, 'Catalyst::Request' );
-    is( $creq->method,       'POST',       'Catalyst::Request method' );
-    is( $creq->content_type, 'text/plain', 'Catalyst::Request Content-Type' );
-    is( $creq->content_length, $request->content_length,
-        'Catalyst::Request Content-Length' );
-}
-
-{
-    my $creq;
-
-    my $request = POST(
-        'http://localhost/dump/request/',
-        'Content-Type' => 'text/plain',
-        'Content'      => 'x' x 100_000
-    );
-
-    ok( my $response = request($request), 'Request' );
-    ok( $response->is_success, 'Response Successful 2xx' );
-    is( $response->content_type, 'text/plain', 'Response Content-Type' );
-    like(
-        $response->content,
-        qr/^bless\( .* 'Catalyst::Request' \)$/s,
-        'Content is a serialized Catalyst::Request'
-    );
-
-    {
-        no strict 'refs';
-        ok(
-            eval '$creq = ' . $response->content,
-            'Unserialize Catalyst::Request'
-        );
-    }
-
-    isa_ok( $creq, 'Catalyst::Request' );
-    is( $creq->method,       'POST',       'Catalyst::Request method' );
-    is( $creq->content_type, 'text/plain', 'Catalyst::Request Content-Type' );
-    is( $creq->content_length, $request->content_length,
-        'Catalyst::Request Content-Length' );
-}