Skip to content

Commit

Permalink
more test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 13, 2012
1 parent 18d117f commit f0c9ecd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -377,6 +377,9 @@ Current transaction, usually a L<Mojo::Transaction::HTTP> object.
is $t->tx->res->json->{foo}, 'bar', 'right value';
ok $t->tx->res->is_multipart, 'multipart content';
# Test custom transactions
$t->tx($t->tx->previous)->status_is(302)->header_like(Location => qr/foo/);
=head2 C<ua>
my $ua = $t->ua;
Expand Down Expand Up @@ -697,7 +700,7 @@ arguments as L<Mojo::UserAgent/"put">.
Perform request and check for transport errors.
# Test custom transaction
# Customize transaction
my $tx = $t->ua->build_json_tx('/user/99' => {name => 'sri'});
$tx->req->method('PUT');
$t->request_ok($tx)
Expand Down

0 comments on commit f0c9ecd

Please sign in to comment.