Some tweaks to Componentised, many_to_many helper from abraxxa
[dbsrgits/DBIx-Class.git] / t / run / 06relationship.tl
index 7141be8..ab35be0 100644 (file)
@@ -1,6 +1,6 @@
 sub run_tests {
   
-plan tests => 13;
+plan tests => 14;
 
 # has_a test
 my $cd = DBICTest->class("CD")->find(4);
@@ -105,6 +105,11 @@ eval {
 };
 like($@, qr/join condition/, 'failed when creating a rel without join condition, ok');
 
+# many_to_many helper test
+$cd = DBICTest->class("CD")->find(1);
+my @producers = $cd->producers();
+is( $producers[0]->name, 'Matt S Trout', 'many_to_many ok' );
+
 }
 
 1;