Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 312 Bytes
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use Plack::Test::Agent;
my $app = sub { return [ 200, [], [ 'Hello' ] ] };
my $agent = Plack::Test::Agent->new(
server => 'HTTP::Server::PSGI',
app => $app,
);
my $res = $agent->get( '/' );
is $res->content, 'Hello';
done_testing;