Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (13 sloc) 0.312 kB
#!/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;
Jump to Line
Something went wrong with that request. Please try again.