X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F06relationship.t;h=ec6b3aa92791dc29486f57899ec4e2f0d5c93524;hb=2a21de92912f460837806a8f1d0a6f8b892609da;hp=7c4984e8d9e8c8c4f02c3825cf1894c865ebbeaa;hpb=656796f2088da66cc80f4eb127c39c923ef3c1dd;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/06relationship.t b/t/06relationship.t index 7c4984e..ec6b3aa 100644 --- a/t/06relationship.t +++ b/t/06relationship.t @@ -63,11 +63,10 @@ is( $cd->title, 'Greatest Hits', 'find_or_create_related new record ok' ); is( ($artist->search_related('cds'))[4]->title, 'Greatest Hits', 'find_or_create_related new record search ok' ); SKIP: { - skip 'Need to add delete_related', 1; + #skip 'Need to add delete_related', 1; # delete_related - ($cd) = DBICTest::CD->search( title => 'Greatest Hits' ); - $artist->delete_related( cds => $cd ); - is( DBICTest::CD->search( title => 'Greatest Hits' ), undef, 'delete_related ok' ); + $artist->delete_related( cds => { title => 'Greatest Hits' }); + cmp_ok( DBICTest::CD->search( title => 'Greatest Hits' ), '==', 0, 'delete_related ok' ); }; # try to add a bogus relationship using the wrong cols