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=733753107a2f78caa95c05ea7fa9b9fff97da6d8;hb=88d300e45ee7a34f351e25b416a4403df1d09813;hpb=198920a15091f27d5b17473742270f3751bfae47 diff --git a/t/rest/list.t b/t/rest/list.t index 7337531..a7a6eb6 100644 --- a/t/rest/list.t +++ b/t/rest/list.t @@ -203,6 +203,8 @@ my $track_list_url = "$base/api/rest/track"; } $schema->resultset('Track')->search( undef, { page => 1, } )->all; is_deeply( $response, + + # track does set use_json_boolean { list => \@expected_response, success => JSON::true, totalcount => 15 }, 'correct data returned for static configured paging' ); @@ -252,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' );