From: Yuval Kogman Date: Sat, 28 Jun 2008 23:03:45 +0000 (+0000) Subject: don't fail without DateTime X-Git-Tag: 0.16~37 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=40c302a98e41525880eda8774e78750c3610c106;p=gitmo%2FMooseX-AttributeHelpers.git don't fail without DateTime --- diff --git a/t/005_basic_list.t b/t/005_basic_list.t index 016c83b..1c122dd 100644 --- a/t/005_basic_list.t +++ b/t/005_basic_list.t @@ -3,10 +3,13 @@ use strict; use warnings; -use Test::More tests => 29; +use Test::More; use Test::Exception; -use DateTime; -use DateTime::Format::Strptime; + +BEGIN { + plan skip_all => "DateTime required" unless eval { require DateTime }; + plan tests => 29; +} BEGIN { use_ok('MooseX::AttributeHelpers');