X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F03-deprecated.t;h=447aaf10de97de6ea2084cfd687fe320788e3f52;hb=7b3d00f984e43c319a637332579e950376637a3d;hp=f89950eca4476cc4d2ed9f1b1efca491d98bc60e;hpb=624e3018cef977b18efce156c40440aa50d26e09;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/03-deprecated.t b/t/03-deprecated.t index f89950e..447aaf1 100644 --- a/t/03-deprecated.t +++ b/t/03-deprecated.t @@ -9,13 +9,12 @@ use aliased 'DBIx::Class::DeploymentHandler::Deprecated'; use File::Path 'remove_tree'; use Test::More; +use File::Temp 'tempdir'; use Test::Exception; -DBICDHTest::ready; - -my $dbh = DBI->connect('dbi:SQLite::memory:'); +my $dbh = DBICDHTest::dbh(); my @connection = (sub { $dbh }, { ignore_version => 1 }); -my $sql_dir = 't/sql'; +my $sql_dir = tempdir( CLEANUP => 1 ); VERSION1: { use_ok 'DBICVersion_v1'; @@ -39,7 +38,7 @@ VERSION1: { bar => 'frew', }) } 'schema not deployed'; - $handler->install; + $handler->install({ version => '1.0' }); dies_ok { $handler->install; } 'cannot install twice';