File::Temp not File:Tempdir
Errietta Kostala [Thu, 28 Aug 2014 13:34:55 +0000 (14:34 +0100)]
Makefile.PL
t/04cache.t

index b19ee23..824bec6 100644 (file)
@@ -19,6 +19,5 @@ WriteMakefile(
     'JSON::MaybeXS' => 0,
     'Hash::Merge' => 0,
     'JSONY' => 0,
-    'File::Tempdir' => 0,
   }
 );
index 4475a84..e91db16 100644 (file)
@@ -4,10 +4,10 @@ use Test::More;
 use App::SCS;
 use IO::All;
 
-use File::Tempdir;
+use File::Temp qw/tempdir/;
 
-my $tmpdir = File::Tempdir->new();
-my $dir = io($tmpdir->name);
+my $tmpdir = tempdir;
+my $dir = io($tmpdir);
 
 $dir->catdir('share/pages/cachetest')->mkpath;
 $dir->catdir('share/templates')->mkpath;