Test uri_for with path = 0
[catagits/Catalyst-Runtime.git] / t / aggregate / live_engine_request_body.t
index c6670da..0abe175 100644 (file)
@@ -1,4 +1,3 @@
-#!perl
 use strict;
 use warnings;
 
@@ -80,13 +79,13 @@ use HTTP::Request::Common;
 # 5.80 regression, see note in Catalyst::Plugin::Test::Plugin
 {
     my $request = GET(
-        'http://localhost/have_req_body_in_prepare_action',
+        'http://localhost/dump/response',
         'Content-Type' => 'text/plain',
         'Content'      => 'x' x 100_000
     );
 
     ok( my $response = request($request), 'Request' );
     ok( $response->is_success, 'Response Successful 2xx' );
-    like( $response->content, qr/^[1-9]/, 'Has body' );
+    ok( $response->header('X-Have-Request-Body'), 'X-Have-Request-Body set' );
 }