fix loading checks
[dbsrgits/DBIx-Class.git] / t / cdbi-t / 24-meta_info.t
index 24c4c74..2545111 100644 (file)
@@ -1,12 +1,19 @@
 #!/usr/bin/perl -w
 
 use strict;
+use Test::More;
+
 BEGIN {
-  eval "require Time::Piece";
-  use Test::More skip_all => "Time::Piece required for this test";
+  eval "use DBIx::Class::CDBICompat;";
+  plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@"
+    if $@;
+
+  plan skip_all => "Time::Piece required for this test"
+    unless eval { require Time::Piece };
+
+  plan tests => 12;
 }
 
-use Test::More tests => 12;
 use Test::Warn;
 
 package Temp::DBI;