X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F03-deprecated.t;h=49e1ef510ce510cc90509db48f763aa87e06e4e4;hb=ee81ad6b9476719fe2002478c492d49c47edb33a;hp=84e25f285e6a6932350f3b98f30fbd08f0cf2755;hpb=91adde755e5808a1ec12bcf00e683e3754964cc9;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/03-deprecated.t b/t/03-deprecated.t index 84e25f2..49e1ef5 100644 --- a/t/03-deprecated.t +++ b/t/03-deprecated.t @@ -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';