my %expected_response =
$schema->resultset('Artist')->find($id)->get_columns;
my $response = $json->decode( $mech->content );
+ #artist does not have use_json_boolean => 1, so true values are stringified to 'true'
is_deeply(
$response,
{ data => \%expected_response, success => 'true' },
my $response = $json->decode( $mech->content );
is_deeply(
$response,
- { data => \%expected_response, success => 'true' },
+ { data => \%expected_response, success => JSON::true },
'correct data returned for track with datetime'
);
}
} $schema->resultset('Track')->search( undef, { page => 1, } )->all;
is_deeply(
$response,
- { list => \@expected_response, success => 'true', totalcount => 15 },
+ { list => \@expected_response, success => JSON::true, totalcount => 15 },
'correct data returned for static configured paging'
);
}