X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F66relationship.t;h=3b67e45e82d3261d91f53cca3a999eb527770998;hb=7d7c7bc7cc6057aeb950f93282da5b2c20d3af00;hp=88f5c1610436c7c6507c599df89f113a42a32582;hpb=b3a9a1ac0bf01e7be5aae1966eef67f70a9dde55;p=dbsrgits%2FDBIx-Class.git diff --git a/t/66relationship.t b/t/66relationship.t index 88f5c16..3b67e45 100644 --- a/t/66relationship.t +++ b/t/66relationship.t @@ -8,7 +8,7 @@ use DBICTest; my $schema = DBICTest->init_schema(); -plan tests => 75; +plan tests => 69; # has_a test my $cd = $schema->resultset("CD")->find(4); @@ -92,12 +92,11 @@ TODO: { $track = $schema->resultset("Track")->create( { trackid => 2, cd => 3, - position => 99, title => 'Hidden Track 2' } ); $track->update_from_related( cd => $cd ); -my $t_cd = ($schema->resultset("Track")->search( cd => 4, position => 99 ))[0]->cd; +my $t_cd = ($schema->resultset("Track")->search( cd => 4, title => 'Hidden Track 2' ))[0]->cd; is( $t_cd->cdid, 4, 'update_from_related ok' );