X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F03_explict_versions.t;h=d6232f9924aa667ffab9c6d2801198c244ac7aa2;hb=c703d15de5286961942f33cdeff6ad978c90d3de;hp=1c5c05a51904267e6736722a1ba15810f9f3611b;hpb=2c627d9e87a083870f6e67c63000363e6726dfc9;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/03_explict_versions.t b/t/03_explict_versions.t index 1c5c05a..d6232f9 100644 --- a/t/03_explict_versions.t +++ b/t/03_explict_versions.t @@ -6,7 +6,7 @@ use Test::Exception; use lib 't/lib'; use DBICTest; use DBIx::Class::DeploymentHandler; -use DBIx::Class::DeploymentHandler::ExplicitVersions; +use DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions; my $db = 'dbi:SQLite:db.db'; my @connection = ($db, '', '', { ignore_version => 1 }); my $sql_dir = 't/sql'; @@ -29,14 +29,14 @@ my $handler = DBIx::Class::DeploymentHandler->new({ }); my $version = $s->schema_version(); -$handler->create_install_ddl(); +$handler->prepare_install(); $handler->install; my $versions = [map "$_.0", 0..100]; { - my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({ schema => $s, ordered_versions => $versions, to_version => '1.0', @@ -48,7 +48,7 @@ my $versions = [map "$_.0", 0..100]; } { - my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({ schema => $s, ordered_versions => $versions, to_version => '5.0', @@ -64,7 +64,7 @@ my $versions = [map "$_.0", 0..100]; } dies_ok { - my $vh = DBIx::Class::DeploymentHandler::ExplicitVersions->new({ + my $vh = DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions->new({ schema => $s, ordered_versions => $versions, to_version => '0.0',