X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2FDBICTest%2FPlain.pm;h=209cc3eb90b626a9da697db0d0a9e7d9827efbf3;hb=1c4391f30e1dce6caf9f9037ff8b4e59fb23fb38;hp=b4e8428931b517de73e1102c81b59595b8721452;hpb=50041f3c86fb362e7ed38369801fbbfe6ee8b2b1;p=dbsrgits%2FDBIx-Class.git diff --git a/t/lib/DBICTest/Plain.pm b/t/lib/DBICTest/Plain.pm index b4e8428..209cc3e 100644 --- a/t/lib/DBICTest/Plain.pm +++ b/t/lib/DBICTest/Plain.pm @@ -1,8 +1,9 @@ -package DBICTest::Plain; +package # hide from PAUSE + DBICTest::Plain; use strict; use warnings; -use base qw/Catalyst::Model::DBIC::Plain/; +use base qw/DBIx::Class::Schema/; use DBI; my $db_file = "t/var/Plain.db"; @@ -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);