Fix populate with an emply ([]) has_many
[dbsrgits/DBIx-Class.git] / t / 100populate.t
index 8bb0fdc..c2c9491 100644 (file)
@@ -315,4 +315,10 @@ lives_ok {
    }])
 } 'multicol-PK has_many populate works';
 
+lives_ok ( sub {
+  $schema->populate('CD', [
+    {cdid => 10001, artist => $artist->id, title => 'Pretty Much Empty', year => 2011, tracks => []},
+  ])
+}, 'empty has_many relationship accepted by populate');
+
 done_testing;