X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04-preconnect.t;fp=t%2F04-preconnect.t;h=d265dc2b0ff150bdcbbea94980f50aa09f9ad8f6;hb=297e662fab9ba5a6798db95abbdbca2181373c92;hp=860b394baa0c557a224171e9ac25aa79444138d3;hpb=bfc0b6500e66b496856d508d7e80d93340565ff5;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/04-preconnect.t b/t/04-preconnect.t index 860b394..d265dc2 100644 --- a/t/04-preconnect.t +++ b/t/04-preconnect.t @@ -8,7 +8,7 @@ use DBICDHTest; use DBIx::Class::DeploymentHandler; use aliased 'DBIx::Class::DeploymentHandler', 'DH'; -use File::Path qw(remove_tree mkpath); +use Path::Class 'dir'; use Test::More; use File::Temp 'tempdir'; @@ -31,7 +31,7 @@ VERSION1: { ok !$s->storage->connected, 'creating handler did not connect'; ok($handler, 'DBIx::Class::DeploymentHandler w/1 instantiates correctly'); - mkpath("$sql_dir/SQLite/initialize/1"); + dir($sql_dir, qw(SQLite initialize 1))->mkpath; $handler->initialize({ version => 1, storage_type => 'SQLite' }); ok !$s->storage->connected, 'creating schema did not connect'; }