X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2Fcolumns_as_hashes.t;h=a8953c332188253b303ae192cefc992ad119c73f;hb=8b16ef4e820ac2e747bbb639614bd9405c6b735c;hp=f10f522c4ccff6f7e28492b9a5808d2eb2648a46;hpb=4a233f3019d2baa4bf2abee0c873c74d5cdf3a11;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/columns_as_hashes.t b/t/cdbi/columns_as_hashes.t index f10f522..a8953c3 100644 --- a/t/cdbi/columns_as_hashes.t +++ b/t/cdbi/columns_as_hashes.t @@ -1,5 +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; @@ -86,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',