Test::Plack returns the response, no need for gyrations
Christian Walde [Mon, 3 Oct 2011 10:49:19 +0000 (12:49 +0200)]
t/post.t

index c908256..24d6086 100644 (file)
--- a/t/post.t
+++ b/t/post.t
@@ -30,8 +30,7 @@ my $app = PostTest->new;
 
 sub run_request {
   my $request = shift;
-  my $response;
-  test_psgi($app->to_psgi_app, sub { $response = shift->($request) });
+  my $response = test_psgi($app->to_psgi_app, sub { shift->($request) });
   return $response;
 }