Fix documentation for in the Cookbook
[dbsrgits/DBIx-Class-DeploymentHandler.git] / t / 04-preconnect.t
index 7f58d4c..9d9cded 100644 (file)
@@ -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;