From: Alexander Hartmaier Date: Wed, 21 Nov 2012 09:23:43 +0000 (+0100) Subject: added diagnostic messages to tests that trigger DBIx::Class warnings X-Git-Tag: 2.004004~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Controller-DBIC-API.git;a=commitdiff_plain;h=23bb3784750da990dc8f6ded48839ff1b7f0d56c added diagnostic messages to tests that trigger DBIx::Class warnings --- diff --git a/Changes b/Changes index 277f550..d3f9821 100644 --- 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 diff --git a/t/rest/update.t b/t/rest/update.t index c076915..7cd6ce5 100644 --- a/t/rest/update.t +++ b/t/rest/update.t @@ -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' } ); diff --git a/t/rpc/update.t b/t/rpc/update.t index 9a30756..c0fcc77 100644 --- a/t/rpc/update.t +++ b/t/rpc/update.t @@ -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' } );