X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F22-deflate_order.t;h=a3188507cafce85c0e59c0ab70f5963455a15566;hb=d9bd5195;hp=9d943e5b5be1641e6a06f4424e25fd087fee1ee1;hpb=50891152d0b24649bfd67bdba97feec86b11c064;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/22-deflate_order.t b/t/cdbi/22-deflate_order.t index 9d943e5..a318850 100644 --- a/t/cdbi/22-deflate_order.t +++ b/t/cdbi/22-deflate_order.t @@ -3,19 +3,13 @@ use strict; use Test::More; -eval "use DBIx::Class::CDBICompat;"; -if ($@) { - plan (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@"); - next; -} +use lib 't/cdbi/testlib'; +use DBIC::Test::SQLite (); # this will issue the necessary SKIPs on missing reqs -eval { require Time::Piece::MySQL }; -plan skip_all => "Need Time::Piece::MySQL for this test" if $@; +eval { require Time::Piece::MySQL } + or plan skip_all => 'Time::Piece::MySQL required for this test'; -eval { require 't/cdbi/testlib/Log.pm' }; -plan skip_all => "Need MySQL for this test" if $@; - -plan tests => 2; +use_ok ('Log'); package main; @@ -28,3 +22,4 @@ $log->update; ok eval { $log->datetime_stamp }, "Have datetime after update"; diag $@ if $@; +done_testing;