use warnings;
use Test::More tests => 10;
+use File::Temp qw(tempdir);
+use File::Spec::Functions;
+my $dir = tempdir( CLEANUP => 1 );
BEGIN {
use_ok('MooseX::Storage');
has 'object' => (is => 'ro', isa => 'Object');
}
-my $file = 'temp.storable';
+my $file = catfile($dir,'temp.storable');
{
my $foo = Foo->new(
is($foo->object->number, 2, '... got the right number (in the embedded object)');
}
-unlink $file;