X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F03-deprecated.t;h=447aaf10de97de6ea2084cfd687fe320788e3f52;hb=7b3d00f984e43c319a637332579e950376637a3d;hp=f29244a22bdadbaa6856b851e1b136db6cf771d8;hpb=f3b5161e466df2a94f2704177f0173e7d940c4d5;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/03-deprecated.t b/t/03-deprecated.t index f29244a..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 = 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';