added comments to tests regarding use_json_boolean usage in the controllers
[catagits/Catalyst-Controller-DBIC-API.git] / t / rest / list.t
index 7337531..a7a6eb6 100644 (file)
@@ -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'
     );