X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04-preconnect.t;h=9d9cded85558111e4d44f6b6eaca38994d13b4d7;hb=418b5fd3c13d72305809a696401b2db66b8defaa;hp=6260194a969191c5e31f28f49b17565663411be2;hpb=9faec51a058ada506be90ba588617b9643c8470b;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/04-preconnect.t b/t/04-preconnect.t index 6260194..9d9cded 100644 --- a/t/04-preconnect.t +++ b/t/04-preconnect.t @@ -14,8 +14,8 @@ use Test::Exception; DBICDHTest::ready; -my $db = 'dbi:SQLite:db.db'; -my @connection = ($db, '', '', { ignore_version => 1, }, { on_connect_do => sub { die }}); +my $db = 'dbi:SQLite::memory:'; +my @connection = ($db, '', '', { ignore_version => 1, on_connect_do => sub { die }}); my $sql_dir = 't/sql'; VERSION1: { @@ -25,7 +25,7 @@ VERSION1: { ok($s, 'DBICVersion::Schema 1 instantiates correctly'); ok !$s->storage->connected, 'creating schema did not connect'; my $handler = DH->new({ - upgrade_directory => $sql_dir, + script_directory => $sql_dir, schema => $s, databases => 'SQLite', sql_translator_args => { add_drop_table => 0 }, @@ -33,8 +33,8 @@ VERSION1: { ok !$s->storage->connected, 'creating handler did not connect'; ok($handler, 'DBIx::Class::DeploymentHandler w/1 instantiates correctly'); - mkpath('t/sql/SQLite/preinstall/1'); - $handler->preinstall({ version => 1, storage_type => 'SQLite' }); + mkpath('t/sql/SQLite/initialize/1'); + $handler->initialize({ version => 1, storage_type => 'SQLite' }); ok !$s->storage->connected, 'creating schema did not connect'; } done_testing;