eliminate HTTP::Request::AsCGI in favour of Plack::Test
[catagits/Web-Simple.git] / t / post.t
index 3390f63..805e57b 100644 (file)
--- a/t/post.t
+++ b/t/post.t
@@ -30,10 +30,7 @@ my $app = PostTest->new;
 
 sub run_request {
   my $request = shift;
-  my $response = test_psgi($app->to_psgi_app, sub {
-    shift->($request);
-  });
-  return $response;
+  return test_psgi $app->to_psgi_app, sub { shift->($request) };
 }
 
 my $get = run_request(GET 'http://localhost/');