Skip to content

Commit

Permalink
better examples for JSON tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 12, 2013
1 parent 8dfa75d commit ea5c332
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Test/Mojo.pm
Expand Up @@ -617,18 +617,18 @@ Opposite of C<json_has>.
=head2 json_is
$t = $t->json_is('/foo' => {bar => [1, 2, 3]});
$t = $t->json_is('/foo/bar' => [1, 2, 3]);
$t = $t->json_is('/foo/bar/1' => 2, 'right value');
$t = $t->json_is('/' => {foo => [1, 2, 3]});
$t = $t->json_is('/foo' => [1, 2, 3]);
$t = $t->json_is('/foo/1' => 2, 'right value');
Check the value extracted from JSON response using the given JSON Pointer with
L<Mojo::JSON::Pointer>.
=head2 json_message_is
$t = $t->json_message_is('/foo' => {bar => [1, 2, 3]});
$t = $t->json_message_is('/foo/bar' => [1, 2, 3]);
$t = $t->json_message_is('/foo/bar/1' => 2, 'right value');
$t = $t->json_message_is('/' => {foo => [1, 2, 3]});
$t = $t->json_message_is('/foo' => [1, 2, 3]);
$t = $t->json_message_is('/foo/1' => 2, 'right value');
Check the value extracted from JSON WebSocket message using the given JSON
Pointer with L<Mojo::JSON::Pointer>.
Expand Down

0 comments on commit ea5c332

Please sign in to comment.