X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=blobdiff_plain;f=t%2Finflate%2Fdatetime_pg.t;h=62eb8104b4a27be8a913b4558eab2d0bce06b906;hp=d39496fb0a559f86f0d798c00183b476bd541014;hb=49bceca3dbc42bc27720f777f336619bd2792943;hpb=cb566613d90f6a1ff3127641b72cc2f8fc9249d8 diff --git a/t/inflate/datetime_pg.t b/t/inflate/datetime_pg.t index d39496f..62eb810 100644 --- a/t/inflate/datetime_pg.t +++ b/t/inflate/datetime_pg.t @@ -2,6 +2,7 @@ use strict; use warnings; use Test::More; +use Test::Warn; use lib qw(t/lib); use DBICTest; @@ -15,7 +16,7 @@ plan skip_all => 'Test needs ' . DBIx::Class::Optional::Dependencies->req_missin my $schema = DBICTest->init_schema(); -{ +warnings_are { my $event = $schema->resultset("EventTZPg")->find(1); $event->update({created_on => '2009-01-15 17:00:00+00'}); $event->discard_changes; @@ -33,6 +34,6 @@ my $schema = DBICTest->init_schema(); is($event->ts_without_tz, $dt, 'timestamp without time zone inflation'); is($event->ts_without_tz->microsecond, $dt->microsecond, 'timestamp without time zone microseconds survived'); -} +} [], 'No warnings during DT manipulations'; done_testing;