X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fmulti_create%2Fm2m.t;h=879453f296b57677dbc0b5e5394f9447f985da43;hb=e85eb407cd475abef6c489dfd36b4866785e00be;hp=4275f586f52e4b601a3abfcc601e9f3a77a988c6;hpb=577ef680ceebff618b85a41dec6177074f51b76c;p=dbsrgits%2FDBIx-Class.git diff --git a/t/multi_create/m2m.t b/t/multi_create/m2m.t index 4275f58..879453f 100644 --- a/t/multi_create/m2m.t +++ b/t/multi_create/m2m.t @@ -1,9 +1,11 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; use Test::Exception; -use lib qw(t/lib); + use DBICTest; plan tests => 4; @@ -23,7 +25,7 @@ lives_ok ( sub { my $cd2 = $schema->resultset('CD')->search ( { cdid => { '!=', $cd->cdid } }, {rows => 1} )->single; # retrieve a cd different from the first $cd2->add_to_producers ({name => 'new m2m producer'}); # attach to an existing producer - ok ($cd2->producers->find ({name => 'new m2m producer'}), 'Exsiting producer attached to existing cd'); + ok ($cd2->producers->find ({name => 'new m2m producer'}), 'Existing producer attached to existing cd'); }, 'Test far-end find_or_create over many_to_many');