Skip to content

Commit

Permalink
test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 14, 2013
1 parent c602724 commit 7f9b63f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/mojo/asset.t
Expand Up @@ -2,8 +2,8 @@ use Mojo::Base -strict;

use Test::More;
use File::Basename 'dirname';
use File::Path 'mkpath';
use File::Spec::Functions qw(catdir tmpdir);
use File::Spec::Functions 'catdir';
use File::Temp 'tempdir';
use Mojo::Asset::File;
use Mojo::Asset::Memory;

Expand Down Expand Up @@ -173,7 +173,7 @@ ok !$asset->is_file, 'stored in memory';

# Temporary directory
{
mkpath my $tmpdir = catdir tmpdir, "mojo_asset_test_$$";
my $tmpdir = tempdir CLEANUP => 1;
local $ENV{MOJO_TMPDIR} = $tmpdir;
$file = Mojo::Asset::File->new;
is($file->tmpdir, $tmpdir, 'same directory');
Expand Down

0 comments on commit 7f9b63f

Please sign in to comment.