}
}
-use Plack::Test;
use HTTP::Request::Common qw(GET POST);
my $app = PostTest->new;
-
-sub run_request {
- my $request = shift;
- return test_psgi $app->to_psgi_app, sub { shift->($request) };
-}
+sub run_request { $app->run_test_request(@_); }
my $get = run_request(GET 'http://localhost/');