Added tests for chained sqlt_deploy_hook()'s
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Plain.pm
index 67aa76a..209cc3e 100644 (file)
@@ -1,4 +1,5 @@
-package DBICTest::Plain;
+package # hide from PAUSE 
+    DBICTest::Plain;
 
 use strict;
 use warnings;
@@ -13,8 +14,14 @@ mkdir("t/var") unless -d "t/var";
 
 my $dsn = "dbi:SQLite:${db_file}";
 
-__PACKAGE__->load_classes;
-my $schema = __PACKAGE__->compose_connection(__PACKAGE__, $dsn);
+__PACKAGE__->load_classes("Test");
+my $schema = __PACKAGE__->compose_connection(
+  __PACKAGE__,
+  $dsn,
+  undef,
+  undef,
+  { AutoCommit => 1 }
+);
 
 my $dbh = DBI->connect($dsn);