Skip to content

Commit

Permalink
fixed json_has method in Test::Mojo (closes #372)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 16, 2012
1 parent a980444 commit 8ba8767
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
@@ -1,6 +1,7 @@

3.32 2012-08-16
- Improved documentation.
- Fixed json_has method in Test::Mojo.

3.31 2012-08-15
- Added accept_charset, accept_encoding, content_encoding, origin and
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -156,7 +156,7 @@ sub json_has {
my ($self, $p, $desc) = @_;
$desc ||= qq{has value for JSON Pointer "$p"};
return $self->_test('ok',
Mojo::JSON::Pointer->new->contains($self->tx->res->json, $p), $desc);
!!Mojo::JSON::Pointer->new->contains($self->tx->res->json, $p), $desc);
}

sub json_hasnt {
Expand Down

0 comments on commit 8ba8767

Please sign in to comment.