X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fearly_column_heisenbug.t;h=e91b40125d82a33f13450b92bf4c2275e1d4c62d;hb=7cb3585200c48fdf62e6be033517497ce792709b;hp=09ea6d9703508bf64ab57db7eb82194e041df1b0;hpb=50891152d0b24649bfd67bdba97feec86b11c064;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/early_column_heisenbug.t b/t/cdbi/early_column_heisenbug.t index 09ea6d9..e91b401 100644 --- a/t/cdbi/early_column_heisenbug.t +++ b/t/cdbi/early_column_heisenbug.t @@ -1,14 +1,10 @@ +use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat'; + use strict; +use warnings; use Test::More; -BEGIN { - eval "use DBIx::Class::CDBICompat;"; - plan $@ ? (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@") - : ('no_plan'); -} - - { package Thing; use base qw(DBIx::Class::CDBICompat); @@ -25,4 +21,4 @@ is_deeply [Stuff->columns("Essential")], []; Thing->columns(Essential => qw(foo bar baz)); is_deeply [Stuff->columns("Essential")], []; -1; +done_testing;