From: Andy Grundman Date: Thu, 4 Aug 2005 16:51:46 +0000 (+0000) Subject: Skip all inflation tests if DateTime is not available X-Git-Tag: v0.03001~71 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8bc482e95a9cc9ccb06398d780f3ea0901f190b2;p=dbsrgits%2FDBIx-Class.git Skip all inflation tests if DateTime is not available --- diff --git a/t/08inflate.t b/t/08inflate.t index 41ba14c..4a98949 100644 --- a/t/08inflate.t +++ b/t/08inflate.t @@ -1,5 +1,7 @@ use Test::More; -use DateTime; + +eval { require DateTime }; +plan skip_all => "Need DateTime for inflation tests" if $@; plan tests => 4; diff --git a/t/08inflate_has_a.t b/t/08inflate_has_a.t index eaeddf3..6f59161 100644 --- a/t/08inflate_has_a.t +++ b/t/08inflate_has_a.t @@ -1,5 +1,7 @@ use Test::More; -use DateTime; + +eval { require DateTime }; +plan skip_all => "Need DateTime for inflation tests" if $@; plan tests => 7;