Skip to content

Commit

Permalink
mention that Test::Mojo methods don't accept callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 3, 2013
1 parent d6adfa6 commit 1ef5a56
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/Test/Mojo.pm
Expand Up @@ -579,7 +579,7 @@ Opposite of C<content_type_like>.
$t = $t->delete_ok('/foo' => {DNT => 1} => json => {a => 'b'});
Perform a C<DELETE> request and check for transport errors, takes the same
arguments as L<Mojo::UserAgent/"delete">.
arguments as L<Mojo::UserAgent/"delete">, except for the callback.
=head2 element_exists
Expand Down Expand Up @@ -611,7 +611,7 @@ Finish C<WebSocket> connection.
$t = $t->get_ok('/foo' => {DNT => 1} => json => {a => 'b'});
Perform a C<GET> request and check for transport errors, takes the same
arguments as L<Mojo::UserAgent/"get">.
arguments as L<Mojo::UserAgent/"get">, except for the callback.
=head2 head_ok
Expand All @@ -621,7 +621,7 @@ arguments as L<Mojo::UserAgent/"get">.
$t = $t->head_ok('/foo' => {DNT => 1} => json => {a => 'b'});
Perform a C<HEAD> request and check for transport errors, takes the same
arguments as L<Mojo::UserAgent/"head">.
arguments as L<Mojo::UserAgent/"head">, except for the callback.
=head2 header_is
Expand Down Expand Up @@ -765,7 +765,7 @@ Opposite of C<message_like>.
$t = $t->options_ok('/foo' => {DNT => 1} => json => {a => 'b'});
Perform a C<OPTIONS> request and check for transport errors, takes the same
arguments as L<Mojo::UserAgent/"options">.
arguments as L<Mojo::UserAgent/"options">, except for the callback.
=head2 or
Expand All @@ -785,7 +785,7 @@ Invoke callback if previous test failed.
$t = $t->patch_ok('/foo' => {DNT => 1} => json => {a => 'b'});
Perform a C<PATCH> request and check for transport errors, takes the same
arguments as L<Mojo::UserAgent/"patch">.
arguments as L<Mojo::UserAgent/"patch">, except for the callback.
=head2 post_ok
Expand All @@ -795,7 +795,7 @@ arguments as L<Mojo::UserAgent/"patch">.
$t = $t->post_ok('/foo' => {DNT => 1} => json => {a => 'b'});
Perform a C<POST> request and check for transport errors, takes the same
arguments as L<Mojo::UserAgent/"post">.
arguments as L<Mojo::UserAgent/"post">, except for the callback.
# Test file upload
$t->post_ok('/upload' => form => {foo => {content => 'bar'}})
Expand All @@ -814,7 +814,7 @@ arguments as L<Mojo::UserAgent/"post">.
$t = $t->put_ok('/foo' => {DNT => 1} => json => {a => 'b'});
Perform a C<PUT> request and check for transport errors, takes the same
arguments as L<Mojo::UserAgent/"put">.
arguments as L<Mojo::UserAgent/"put">, except for the callback.
=head2 request_ok
Expand Down Expand Up @@ -848,7 +848,7 @@ Send message or frame via WebSocket.
$t->websocket_ok('/echo.json')
->send_ok({text => j({test => 'I ♥ Mojolicious!'})})
->message_ok
->json_message_is('' => {test => 'I ♥ Mojolicious!'})
->json_message_is('/test' => 'I ♥ Mojolicious!')
->finish_ok;
=head2 status_is
Expand Down Expand Up @@ -901,7 +901,7 @@ Opposite of C<text_like>.
$t = $t->websocket_ok('/echo' => {DNT => 1});
Open a C<WebSocket> connection with transparent handshake, takes the same
arguments as L<Mojo::UserAgent/"websocket">.
arguments as L<Mojo::UserAgent/"websocket">, except for the callback.
=head1 SEE ALSO
Expand Down

0 comments on commit 1ef5a56

Please sign in to comment.