Skip to content

Commit

Permalink
Improved mech handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed Oct 11, 2011
1 parent 4677848 commit 8bcc787
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions t/mech.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ my $app = sub
return [ $code, [ 'Content-Type' => 'text/plain' ], [ $output ] ];
};

my $agent = Plack::Test::Agent->new( app => $app,
server => 'HTTP::Server::PSGI' );
my $mech = $agent->get_mech;
my $mech = Plack::Test::Agent->new( app => $app,
server => 'HTTP::Server::PSGI' )->get_mech;

$mech->get_ok( '/?have=foo;want=foo',
'Request should succeed when values match' );
Expand Down

0 comments on commit 8bcc787

Please sign in to comment.