Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention that additional tests can run on the transaction
  • Loading branch information
kraih committed Sep 1, 2014
1 parent 016c62a commit e639d64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Test/Mojo.pm
Expand Up @@ -640,6 +640,10 @@ arguments as L<Mojo::UserAgent/"get">, except for the callback.
# Run tests against remote host
$t->get_ok('http://mojolicio.us/perldoc')->status_is(200);
# Run additional tests on the transaction
$t->get_ok('/foo')->status_is(200);
is $t->tx->res->dom->at('input')->val, 'whatever', 'right value';
=head2 head_ok
$t = $t->head_ok('/foo');
Expand Down

0 comments on commit e639d64

Please sign in to comment.