From: Tom Hukins <tom@eborcom.com>
Date: Wed, 15 Aug 2007 08:24:32 +0000 (+0000)
Subject: Restore code that I removed in revision 3640 that tests still need
X-Git-Tag: v0.08010~80^2~1
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=640ac94ca18c095237d96a880b8afbc1ed1c2694;p=dbsrgits%2FDBIx-Class.git

Restore code that I removed in revision 3640 that tests still need
---

diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm
index 56d511a..5c76153 100755
--- a/t/lib/DBICTest.pm
+++ b/t/lib/DBICTest.pm
@@ -65,7 +65,13 @@ sub init_schema {
 
     my $schema;
 
-    $schema = DBICTest::Schema->compose_namespace('DBICTest');
+    if ($args{compose_connection}) {
+      $schema = DBICTest::Schema->compose_connection(
+                  'DBICTest', $self->_database
+                );
+    } else {
+      $schema = DBICTest::Schema->compose_namespace('DBICTest');
+    }
     if ( !$args{no_connect} ) {
       $schema = $schema->connect($self->_database);
       $schema->storage->on_connect_do(['PRAGMA synchronous = OFF']);