Permalink
Browse files

Improved mech handling.

  • Loading branch information...
1 parent 4677848 commit 8bcc7879a6cd243d3ab9fa2b9e3ea6e3a967dc60 @chromatic committed Oct 11, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 t/mech.t
View
@@ -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' );

0 comments on commit 8bcc787

Please sign in to comment.