projects
/
dbsrgits/DBIx-Class-Fixtures.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
addition of use_create option for populate
[dbsrgits/DBIx-Class-Fixtures.git]
/
t
/
lib
/
DBICTest
/
Schema
/
Artist.pm
diff --git
a/t/lib/DBICTest/Schema/Artist.pm
b/t/lib/DBICTest/Schema/Artist.pm
index
594a76d
..
f6d8180
100644
(file)
--- a/
t/lib/DBICTest/Schema/Artist.pm
+++ b/
t/lib/DBICTest/Schema/Artist.pm
@@
-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;