X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02-instantiation.t;h=c7fde9b74a519cb622e1ca9437816073134353c9;hb=a912450b8ca3f98fa8ef136ec40c77817e6cf4c9;hp=73e92de0486f34adf0f0d93ac0a8644e3eb35e86;hpb=24f4524be2492ee3699f7ee87eb899238c6268c7;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/02-instantiation.t b/t/02-instantiation.t index 73e92de..c7fde9b 100644 --- a/t/02-instantiation.t +++ b/t/02-instantiation.t @@ -31,7 +31,7 @@ VERSION1: { ok($handler, 'DBIx::Class::DeploymentHandler w/1.0 instantiates correctly'); my $version = $s->schema_version(); - $handler->create_install_ddl(); + $handler->prepare_install(); ok(-e 't/sql/DBICVersion-Schema-1.0-SQLite.sql', 'DDL for 1.0 got created successfully'); dies_ok { @@ -60,7 +60,7 @@ VERSION2: { ok($handler, 'DBIx::Class::DeploymentHandler w/2.0 instantiates correctly'); $version = $s->schema_version(); - $handler->create_install_ddl(); + $handler->prepare_install(); $handler->create_update_ddl($version, '1.0'); ok(-e 't/sql/DBICVersion-Schema-2.0-SQLite.sql', 'DDL for 2.0 got created successfully'); ok(-e 't/sql/DBICVersion-Schema-1.0-2.0-SQLite.sql', 'DDL for migration from 1.0 to 2.0 got created successfully'); @@ -99,7 +99,7 @@ VERSION3: { ok($handler, 'DBIx::Class::DeploymentHandler w/3.0 instantiates correctly'); $version = $s->schema_version(); - $handler->create_install_ddl; + $handler->prepare_install; $handler->create_update_ddl( $version, '1.0'); $handler->create_update_ddl( $version, '2.0'); ok(-e 't/sql/DBICVersion-Schema-3.0-SQLite.sql', 'DDL for 3.0 got created successfully');