X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICDHTest.pm;h=22017e3b11215f10024a1f9e2e9847c84ada70a7;hb=7b3d00f984e43c319a637332579e950376637a3d;hp=6b76475505da2f0a88095802c1b2732914f6197a;hpb=02d58ac05dd4ccbe5fd4ff8a9cc58681ee1b74ee;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/t/lib/DBICDHTest.pm b/t/lib/DBICDHTest.pm index 6b76475..22017e3 100644 --- a/t/lib/DBICDHTest.pm +++ b/t/lib/DBICDHTest.pm @@ -4,14 +4,10 @@ use strict; use warnings; use File::Path 'remove_tree'; +use DBI; -sub ready { - unlink 'db.db' if -e 'db.db'; - if (-d 't/sql') { - remove_tree('t/sql'); - mkdir 't/sql'; - } +sub dbh { + DBI->connect('dbi:SQLite::memory:', undef, undef, { RaiseError => 1 }) } - 1;