use Test::More;
-plan tests => 7;
+plan tests => 8;
use lib qw(t/lib);
} );
is( ($artist->search_related('cds'))[3]->title, 'Big Flop', 'create_related ok' );
+# count_related
+is( $artist->count_related('cds'), 4, 'count_related ok' );
+
+SKIP: {
+
+ #skip "Relationship with invalid cols not yet checked", 1;
+
# try to add a bogus relationship using the wrong cols
eval {
$artist->add_relationship(
{ 'foreign.cd' => 'self.cdid' }
);
};
-like($@, qr/no such accessor/, 'failed when creating a rel with invalid key, ok');
+like($@, qr/Unknown column/, 'failed when creating a rel with invalid key, ok');
+
+} # End SKIP block
# another bogus relationship using no join condition
eval {