X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fset_vs_DateTime.t;h=72d69af6d15cfc4ca9138f1474b7bc343afccf3d;hb=d9bd5195;hp=48ae9f3233999385ff1b8294a58ef75e966fb2b7;hpb=aea59b74d807ee65b319f3c1f84709157e12926b;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/set_vs_DateTime.t b/t/cdbi/set_vs_DateTime.t index 48ae9f3..72d69af 100644 --- a/t/cdbi/set_vs_DateTime.t +++ b/t/cdbi/set_vs_DateTime.t @@ -1,13 +1,13 @@ use strict; 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 +25,6 @@ lives_ok { $thing->set( date => $date ); }; - - $thing->discard_changes; + +done_testing;