X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fcolumns_as_hashes.t;h=a8953c332188253b303ae192cefc992ad119c73f;hb=bb768302f9abecbd4a32090ba38d5938a009bd7b;hp=fcb6b17321a2334deecf09ed2ed8cb148c961ce6;hpb=d9bd51956470404b3960871d3413fa98f16961d2;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/columns_as_hashes.t b/t/cdbi/columns_as_hashes.t index fcb6b17..a8953c3 100644 --- a/t/cdbi/columns_as_hashes.t +++ b/t/cdbi/columns_as_hashes.t @@ -1,4 +1,9 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } +use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat'; + use strict; +use warnings; + use Test::More; use Test::Warn; @@ -85,11 +90,8 @@ warning_is { # Emulate that Class::DBI inflates immediately SKIP: { - unless (eval { require MyFoo }) { - my ($err) = $@ =~ /([^\n]+)/; - skip $err, 3 - } - + DBIx::Class::Optional::Dependencies->skip_without([qw( Date::Simple>=3.03 test_rdbms_mysql )]); + require MyFoo; my $foo = MyFoo->insert({ name => 'Whatever', tdate => '1949-02-01',