X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fdeploy_methods%2Fsql_translator_protoschema_transform.t;fp=t%2Fdeploy_methods%2Fsql_translator_protoschema_transform.t;h=ee6fbcb34455222a6300669708933ff460d5cba2;hb=297e662fab9ba5a6798db95abbdbca2181373c92;hp=c91f415288249eaad4aa0894e8a4f3d6c79be05e;hpb=bfc0b6500e66b496856d508d7e80d93340565ff5;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/deploy_methods/sql_translator_protoschema_transform.t b/t/deploy_methods/sql_translator_protoschema_transform.t index c91f415..ee6fbcb 100644 --- a/t/deploy_methods/sql_translator_protoschema_transform.t +++ b/t/deploy_methods/sql_translator_protoschema_transform.t @@ -8,8 +8,7 @@ use Test::More; use lib 't/lib'; use DBICDHTest; use aliased 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator'; -use File::Spec::Functions qw(catfile splitdir); -use File::Path qw(rmtree mkpath); +use Path::Class qw(dir file); use File::Temp qw(tempfile tempdir); my $dbh = DBICDHTest::dbh(); @@ -42,9 +41,9 @@ VERSION2: { }); $dm->prepare_deploy; - mkpath(catfile(splitdir($sql_dir), qw(_preprocess_schema upgrade 1.0-2.0 ))); + dir($sql_dir, qw(_preprocess_schema upgrade 1.0-2.0 ))->mkpath; open my $prerun, '>', - catfile(splitdir($sql_dir), qw(_preprocess_schema upgrade 1.0-2.0 003-semiautomatic.pl )); + file($sql_dir, qw(_preprocess_schema upgrade 1.0-2.0 003-semiautomatic.pl )); my (undef, $fn) = tempfile(OPEN => 0); print {$prerun} qq^sub {