Skip to content

Commit

Permalink
fixed json_is bug in Test::Mojo (closes #401)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 22, 2012
1 parent 016e558 commit dc0f88f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Changes
@@ -1,8 +1,8 @@

3.51 2012-10-21
3.51 2012-10-22
- Improved documentation.
- Improved tests.
- Fixed warning in Test::Mojo.
- Fixed json_is bug and warning in Test::Mojo.

3.50 2012-10-20
- Improved option handling of all commands.
Expand Down
3 changes: 2 additions & 1 deletion lib/Test/Mojo.pm
Expand Up @@ -145,7 +145,8 @@ sub json_content_is {
sub json_is {
my ($self, $p, $data, $desc) = @_;
$desc ||= qq{exact match for JSON Pointer "$p"};
return $self->_test('is_deeply', $self->tx->res->json($p), $data, $desc);
return $self->_test('is_deeply', scalar $self->tx->res->json($p), $data,
$desc);
}

sub json_has {
Expand Down

0 comments on commit dc0f88f

Please sign in to comment.