addition of use_create option for populate
[dbsrgits/DBIx-Class-Fixtures.git] / t / lib / DBICTest / Schema / Artist.pm
index 594a76d..f6d8180 100644 (file)
@@ -22,4 +22,12 @@ __PACKAGE__->has_many(
     { order_by => 'year' },
 );
 
+sub new {
+       my ( $class, $args ) = @_;
+
+       $args->{name} = "Test Name" unless $args->{name};
+
+       return $class->next::method( $args );
+}
+
 1;