X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=blobdiff_plain;f=t%2Frest%2Flist.t;h=a7a6eb6838c7b83c579fb76edc8ea67880642c7f;hp=acb8872fa5bc09bb3787b240bd98b71f97663b43;hb=d93988fd263249693b54659faf5fde139d2358aa;hpb=0b0bf9111127c9fdad1e456169ec4cdd15b160f9 diff --git a/t/rest/list.t b/t/rest/list.t index acb8872..a7a6eb6 100644 --- a/t/rest/list.t +++ b/t/rest/list.t @@ -1,5 +1,3 @@ -use 5.6.0; - use strict; use warnings; @@ -205,7 +203,9 @@ my $track_list_url = "$base/api/rest/track"; } $schema->resultset('Track')->search( undef, { page => 1, } )->all; is_deeply( $response, - { list => \@expected_response, success => 'true', totalcount => 15 }, + + # track does set use_json_boolean + { list => \@expected_response, success => JSON::true, totalcount => 15 }, 'correct data returned for static configured paging' ); } @@ -254,6 +254,8 @@ my $track_list_url = "$base/api/rest/track"; { join => { cds => 'tracks' }, } )->all; is_deeply( $response, + + # artist doesn't set use_json_boolean { list => \@expected_response, success => 'true' }, 'correct data returned for search with sql function' );