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=45ce621581c19cc639033fd29aaeeadf54bb1619;hpb=97d61088b16ce8d2ffcbb4a2433509d65f7f7449;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/set_vs_DateTime.t b/t/cdbi/set_vs_DateTime.t index 45ce621..08fe4c9 100644 --- a/t/cdbi/set_vs_DateTime.t +++ b/t/cdbi/set_vs_DateTime.t @@ -1,14 +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;"; - plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" - if $@; - plan skip_all => "DateTime required" unless eval { require DateTime }; - plan tests => 1; + eval { require DateTime; DateTime->VERSION(0.55) } + or plan skip_all => 'DateTime 0.55 required for this test'; } { @@ -26,6 +26,6 @@ lives_ok { $thing->set( date => $date ); }; - - $thing->discard_changes; + +done_testing;