From: Arthur Axel 'fREW' Schmidt Date: Sun, 4 Jul 2010 04:33:52 +0000 (-0500) Subject: Test prepare_install X-Git-Tag: v0.001002~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5761fe02e68a534a47a6a5ff905c73ec991703cd;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Test prepare_install --- diff --git a/t/02-instantiation-no-ddl.t b/t/02-instantiation-no-ddl.t index 7355f9d..66fcc44 100644 --- a/t/02-instantiation-no-ddl.t +++ b/t/02-instantiation-no-ddl.t @@ -34,7 +34,7 @@ VERSION1: { ok($handler, 'DBIx::Class::DeploymentHandler w/1 instantiates correctly'); my $version = $s->schema_version; - $handler->prepare_deploy; + $handler->prepare_install; dies_ok { $s->resultset('Foo')->create({ @@ -67,7 +67,7 @@ VERSION2: { ok($handler, 'DBIx::Class::DeploymentHandler w/2 instantiates correctly'); my $version = $s->schema_version(); - $handler->prepare_deploy(); + $handler->prepare_install; dies_ok { $s->resultset('Foo')->create({ bar => 'frew', @@ -104,7 +104,7 @@ VERSION3: { ok($handler, 'DBIx::Class::DeploymentHandler w/3 instantiates correctly'); my $version = $s->schema_version(); - $handler->prepare_deploy; + $handler->prepare_install; dies_ok { $s->resultset('Foo')->create({ bar => 'frew', diff --git a/t/02-instantiation-wo-component.t b/t/02-instantiation-wo-component.t index e607828..bdea821 100644 --- a/t/02-instantiation-wo-component.t +++ b/t/02-instantiation-wo-component.t @@ -33,7 +33,7 @@ VERSION1: { ok($handler, 'DBIx::Class::DeploymentHandler w/1 instantiates correctly'); my $version = $s->schema_version; - $handler->prepare_deploy; + $handler->prepare_install; dies_ok { $s->resultset('Foo')->create({ @@ -65,7 +65,7 @@ VERSION2: { ok($handler, 'DBIx::Class::DeploymentHandler w/2 instantiates correctly'); my $version = $s->schema_version(); - $handler->prepare_deploy(); + $handler->prepare_install; $handler->prepare_upgrade({ from_version => 1, to_version => $version }); dies_ok { $s->resultset('Foo')->create({ @@ -102,7 +102,7 @@ VERSION3: { ok($handler, 'DBIx::Class::DeploymentHandler w/3 instantiates correctly'); my $version = $s->schema_version(); - $handler->prepare_deploy; + $handler->prepare_install; $handler->prepare_upgrade({ from_version => 2, to_version => $version }); dies_ok { $s->resultset('Foo')->create({ diff --git a/t/02-instantiation.t b/t/02-instantiation.t index 36e8e4f..33de750 100644 --- a/t/02-instantiation.t +++ b/t/02-instantiation.t @@ -33,7 +33,7 @@ VERSION1: { ok($handler, 'DBIx::Class::DeploymentHandler w/1 instantiates correctly'); my $version = $s->schema_version; - $handler->prepare_deploy; + $handler->prepare_install; dies_ok { $s->resultset('Foo')->create({ @@ -65,7 +65,7 @@ VERSION2: { ok($handler, 'DBIx::Class::DeploymentHandler w/2 instantiates correctly'); my $version = $s->schema_version(); - $handler->prepare_deploy(); + $handler->prepare_install; $handler->prepare_upgrade({ from_version => 1, to_version => $version} ); dies_ok { $s->resultset('Foo')->create({ @@ -102,7 +102,7 @@ VERSION3: { ok($handler, 'DBIx::Class::DeploymentHandler w/3 instantiates correctly'); my $version = $s->schema_version(); - $handler->prepare_deploy; + $handler->prepare_install; $handler->prepare_upgrade({ from_version => 2, to_version => $version }); dies_ok { $s->resultset('Foo')->create({