added diagnostic messages to tests that trigger DBIx::Class warnings
Alexander Hartmaier [Wed, 21 Nov 2012 09:23:43 +0000 (10:23 +0100)]
Changes
t/rest/update.t
t/rpc/update.t

diff --git a/Changes b/Changes
index 277f550..d3f9821 100644 (file)
--- a/Changes
+++ b/Changes
@@ -4,6 +4,7 @@ Revision history for Catalyst-Controller-DBIC-API: {{ $dist->version }}
 - Fixed test failures in t/[rest,rpc]/item.t on newer HTTP::Message versions
 - Don't wrap the SQLite test schema DDL queries in a transaction to suppress
   DBIx::Class warnings
+- Added diagnostic messages to tests that trigger DBIx::Class warnings
 
 2.004003  2011-12-19 14:41:59 Europe/Vienna
 - Fixed test failure in generic.t with Moose > 2.02
index c076915..7cd6ce5 100644 (file)
@@ -27,6 +27,7 @@ my $tracks_update_url = $track_url;
 
 # test invalid track id caught
 {
+    diag 'DBIx::Class warns about a non-numeric id which is ok because we test for that too';
     foreach my $wrong_id ( 'sdsdsdsd', 3434234 ) {
         my $incorrect_url = "$base/api/rest/track/" . $wrong_id;
         my $test_data     = $json->encode( { title => 'value' } );
index 9a30756..c0fcc77 100644 (file)
@@ -28,6 +28,7 @@ my $tracks_update_url = "$base/api/rpc/track/update";
 
 # test invalid track id caught
 {
+    diag 'DBIx::Class warns about a non-numeric id which is ok because we test for that too';
     foreach my $wrong_id ( 'sdsdsdsd', 3434234 ) {
         my $incorrect_url = "$base/api/rpc/track/id/" . $wrong_id . "/update";
         my $req = POST( $incorrect_url, { title => 'value' } );