Skip to content

Commit

Permalink
use json_like in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 12, 2014
1 parent 858b412 commit 72515bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -406,7 +406,8 @@ Test::Mojo - Testing Mojo!
->status_is(200)
->header_is('Server' => 'Mojolicious (Perl)')
->header_isnt('X-Bender' => 'Bite my shiny metal ass!')
->json_is('/results/4/title' => 'Perl rocks!');
->json_is('/results/4/title' => 'Perl rocks!')
->json_like('/results/7/title' => qr/Perl/);
# WebSocket
$t->websocket_ok('/echo')
Expand Down

0 comments on commit 72515bc

Please sign in to comment.