From: Peter Rabbitson Date: Tue, 26 May 2009 14:36:55 +0000 (+0000) Subject: Fix test skip message X-Git-Tag: v0.08103~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=8f2089dcce58f35826fc13b3ed8ecfbba4c429a3 Fix test skip message --- diff --git a/t/89inflate_datetime.t b/t/89inflate_datetime.t index 5a77195..ea7c930 100644 --- a/t/89inflate_datetime.t +++ b/t/89inflate_datetime.t @@ -149,8 +149,9 @@ is ("$skip_inflation", '2006-04-21 18:04:06', 'Correct date/time'); } # Skip if no MySQL DT::Formatter SKIP: { + eval { require DateTime::Format::Pg }; + skip ('Need DateTime::Format::Pg for timestamp inflation tests', 3) if $@; - skip "ENV{DBIC_FLOATING_TZ_OK} was set, skipping", 3 unless eval { require DateTime::Format::Pg; 1}; my $event = $schema->resultset("EventTZPg")->find(1); $event->update({created_on => '2009-01-15 17:00:00+00'}); $event->discard_changes;