[Rt-commit] r2063 - in DBIx-SearchBuilder/trunk: . t

jesse at bestpractical.com jesse at bestpractical.com
Sun Jan 9 14:59:03 EST 2005


Author: jesse
Date: Sun Jan  9 14:59:03 2005
New Revision: 2063

Modified:
   DBIx-SearchBuilder/trunk/   (props changed)
   DBIx-SearchBuilder/trunk/t/01records.t
   DBIx-SearchBuilder/trunk/t/02records_object.t
Log:
 r9860 at tinbook:  jesse | 2005-01-09T19:55:54.694764Z
 Corion's cpansmoker pointed out that we were hardcoding /tmp.  Now we use File::Spec
 


Modified: DBIx-SearchBuilder/trunk/t/01records.t
==============================================================================
--- DBIx-SearchBuilder/trunk/t/01records.t	(original)
+++ DBIx-SearchBuilder/trunk/t/01records.t	Sun Jan  9 14:59:03 2005
@@ -3,7 +3,7 @@
 
 use strict;
 use warnings;
-
+use File::Spec;
 use Test::More;
 eval "use DBD::SQLite";
 if ($@) { 
@@ -18,7 +18,7 @@
 
 isa_ok($handle, 'DBIx::SearchBuilder::Handle');
 isa_ok($handle, 'DBIx::SearchBuilder::Handle::SQLite');
-        $handle->Connect( Driver => 'SQLite', Database => "/tmp/sb-test.$$" );
+        $handle->Connect( Driver => 'SQLite', Database => File::Spec->tmpdir()."sb-test.$$" );
 
 can_ok($handle, 'dbh');
 isa_ok($handle->dbh, 'DBI::db');

Modified: DBIx-SearchBuilder/trunk/t/02records_object.t
==============================================================================
--- DBIx-SearchBuilder/trunk/t/02records_object.t	(original)
+++ DBIx-SearchBuilder/trunk/t/02records_object.t	Sun Jan  9 14:59:03 2005
@@ -3,6 +3,7 @@
 
 use strict;
 use warnings;
+use File::Spec;
 
 use Test::More;
 eval "use DBD::SQLite";
@@ -16,7 +17,7 @@
 
 isa_ok($handle, 'DBIx::SearchBuilder::Handle');
 isa_ok($handle, 'DBIx::SearchBuilder::Handle::SQLite');
-$handle->Connect( Driver => 'SQLite', Database => "/tmp/sb-test.$$" );
+$handle->Connect( Driver => 'SQLite', Database => File::Spec->tmpdir()."sb-test.$$" );
 can_ok($handle, 'dbh');
 isa_ok($handle->dbh, 'DBI::db');
 foreach( @{ TestApp->schema } ) {


More information about the Rt-commit mailing list