using :memory: sqlite db instead of File::Temp::tempfile
Johannes Plunien [Fri, 5 Dec 2008 06:16:39 +0000 (06:16 +0000)]
t/10-hashref.t

index 73e0e5d..b1ebe9b 100644 (file)
@@ -15,11 +15,9 @@ BEGIN {
 
 use lib 't/lib';
 use TestSchema;
-use File::Temp;
 
 # setup
-my ( undef, $db ) = File::Temp::tempfile();
-my $schema = TestSchema->connect( "dbi:SQLite:dbname=${db}", undef, undef );
+my $schema = TestSchema->connect( "dbi:SQLite:dbname=:memory:", undef, undef );
 $schema->deploy;
 
 my @users = qw/root toor daemon operator bin tty/;