From: Rafael Kitover Date: Sun, 12 Dec 2010 07:30:46 +0000 (-0500) Subject: run pre_create when running only extra tests X-Git-Tag: 0.07003~25 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a94a90f23423f76b7b905e272d7cd3f8127cc0af;p=dbsrgits%2FDBIx-Class-Schema-Loader.git run pre_create when running only extra tests --- diff --git a/t/lib/dbixcsl_common_tests.pm b/t/lib/dbixcsl_common_tests.pm index 3f2dc26..f7c37ce 100644 --- a/t/lib/dbixcsl_common_tests.pm +++ b/t/lib/dbixcsl_common_tests.pm @@ -124,6 +124,7 @@ sub run_only_extra_tests { $self->drop_extra_tables_only; my $dbh = $self->dbconnect(1); + $dbh->do($_) for @{ $self->{pre_create} || [] }; $dbh->do($_) for @{ $self->{extra}{create} || [] }; $dbh->do($_) for @{ $self->{data_type_tests}{ddl} || []}; $self->{_created} = 1;