X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi%2F09-has_many.t;h=c2939efce16b9184b217c00c7de2c2fbaa36c6d5;hb=a0c96f2461b2a46b242b8432deb0ad88880f73cd;hp=b9048dc95ec7881105ab22b1042d4af22015f57c;hpb=68de943862f06cabd397d2e74d12cd9cdc999779;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi/09-has_many.t b/t/cdbi/09-has_many.t index b9048dc..c2939ef 100644 --- a/t/cdbi/09-has_many.t +++ b/t/cdbi/09-has_many.t @@ -1,14 +1,6 @@ use strict; use Test::More; - -BEGIN { - eval "use DBIx::Class::CDBICompat;"; - plan skip_all => 'Class::Trigger and DBIx::ContextualFetch required' if $@; - plan tests => 31; -} - - use lib 't/cdbi/testlib'; use Film; use Actor; @@ -53,7 +45,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/needs/, "add_to_actors takes hash"; +like $@, qr/expects a hashref/, "add_to_actors takes hash"; ok( my $pj = $btaste->add_to_actors( @@ -124,3 +116,5 @@ is($as->Name, 'Arnold Schwarzenegger', "Arnie's still Arnie"); is_deeply [sort map { $_->id } $other_thing->things], [1,2]; } + +done_testing;