X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04-preconnect.t;h=9d9cded85558111e4d44f6b6eaca38994d13b4d7;hb=8bb2f1ac7ad65531f27e24967076fa133f08da93;hp=7f58d4c88d0de4a426165fde1b984a99ba685d3c;hpb=91adde755e5808a1ec12bcf00e683e3754964cc9;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/04-preconnect.t b/t/04-preconnect.t index 7f58d4c..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: { @@ -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;