X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F09-has_many.t;h=c0636572807cf6a95392843ddfe02437e4d0e3ce;hb=50841788d03e2342a00470eb2f458e717922615b;hp=0c751a09fccf29d980f246af6b3ee079aec7241d;hpb=e84ae5d1931244d9a11cd58488aeaf34e33cf234;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/09-has_many.t b/t/cdbi/09-has_many.t index 0c751a0..c063657 100644 --- a/t/cdbi/09-has_many.t +++ b/t/cdbi/09-has_many.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 lib 't/cdbi/testlib'; @@ -46,7 +50,7 @@ eval { my $pj = Film->add_to_actors(\%pj_data) }; like $@, qr/class/, "add_to_actors must be object method"; eval { my $pj = $btaste->add_to_actors(%pj_data) }; -like $@, qr/Result object instantiation requires a hashref as argument/, "add_to_actors takes hash"; +like $@, qr/Result object instantiation requires a single hashref argument/, "add_to_actors takes hash"; ok( my $pj = $btaste->add_to_actors(