X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fset_vs_DateTime.t;h=08fe4c991dbdbb1a90006afe455623fa9f10b89a;hb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;hp=48ae9f3233999385ff1b8294a58ef75e966fb2b7;hpb=68de943862f06cabd397d2e74d12cd9cdc999779;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/set_vs_DateTime.t b/t/cdbi/set_vs_DateTime.t index 48ae9f3..08fe4c9 100644 --- a/t/cdbi/set_vs_DateTime.t +++ b/t/cdbi/set_vs_DateTime.t @@ -1,13 +1,14 @@ use strict; +use warnings; use Test::More; use Test::Exception; + use lib 't/cdbi/testlib'; +use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs BEGIN { - eval "use DBIx::Class::CDBICompat;use DateTime 0.55;"; - plan skip_all => "DateTime 0.55, Class::Trigger and DBIx::ContextualFetch required: $@" - if $@; - plan tests => 1; + eval { require DateTime; DateTime->VERSION(0.55) } + or plan skip_all => 'DateTime 0.55 required for this test'; } { @@ -25,6 +26,6 @@ lives_ok { $thing->set( date => $date ); }; - - $thing->discard_changes; + +done_testing;