Allow user to specify version of schema to install
[dbsrgits/DBIx-Class-DeploymentHandler.git] / t / 03-deprecated.t
index 84e25f2..49e1ef5 100644 (file)
@@ -13,8 +13,8 @@ use Test::Exception;
 
 DBICDHTest::ready;
 
-my $db = 'dbi:SQLite:db.db';
-my @connection = ($db, '', '', { ignore_version => 1 });
+my $dbh = DBICDHTest::dbh();
+my @connection = (sub { $dbh }, { ignore_version => 1 });
 my $sql_dir = 't/sql';
 
 VERSION1: {
@@ -39,7 +39,7 @@ VERSION1: {
       bar => 'frew',
     })
   } 'schema not deployed';
-  $handler->install;
+  $handler->install({ version => '1.0' });
   dies_ok {
     $handler->install;
   } 'cannot install twice';