From: Johannes Plunien Date: Wed, 24 Sep 2008 21:26:06 +0000 (+0200) Subject: doing ->init_schema( sqlite_use_file => 1 ) in 92storage.t 89dbicadmin.t 33storage_re... X-Git-Tag: v0.08240~348 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fcf741b1334db25606be7a92d24ddcf627477c2c;p=dbsrgits%2FDBIx-Class.git doing ->init_schema( sqlite_use_file => 1 ) in 92storage.t 89dbicadmin.t 33storage_reconnect.t 32connect_code_ref.t --- diff --git a/t/32connect_code_ref.t b/t/32connect_code_ref.t index 4b90532..9fe0e60 100644 --- a/t/32connect_code_ref.t +++ b/t/32connect_code_ref.t @@ -8,7 +8,7 @@ use DBICTest; plan tests => 1; # Set up the "usual" sqlite for DBICTest -my $normal_schema = DBICTest->init_schema; +my $normal_schema = DBICTest->init_schema( sqlite_use_file => 1 ); # Steal the dsn, which should be like 'dbi:SQLite:t/var/DBIxClass.db' my $normal_dsn = $normal_schema->storage->connect_info->[0]; diff --git a/t/33storage_reconnect.t b/t/33storage_reconnect.t index 8dcaeec..34dae6d 100644 --- a/t/33storage_reconnect.t +++ b/t/33storage_reconnect.t @@ -13,7 +13,7 @@ my $db_orig = "$FindBin::Bin/var/DBIxClass.db"; my $db_tmp = "$db_orig.tmp"; # Set up the "usual" sqlite for DBICTest -my $schema = DBICTest->init_schema; +my $schema = DBICTest->init_schema( sqlite_use_file => 1 ); # Make sure we're connected by doing something my @art = $schema->resultset("Artist")->search({ }, { order_by => 'name DESC'}); diff --git a/t/89dbicadmin.t b/t/89dbicadmin.t index 8077664..095204d 100644 --- a/t/89dbicadmin.t +++ b/t/89dbicadmin.t @@ -6,7 +6,7 @@ use Test::More; use lib qw(t/lib); use DBICTest; -my $schema = DBICTest->init_schema(); +my $schema = DBICTest->init_schema( sqlite_use_file => 1 ); eval 'require JSON::Any'; plan skip_all => 'Install JSON::Any to run this test' if ($@); diff --git a/t/92storage.t b/t/92storage.t index 127b66c04..56fb7b4 100644 --- a/t/92storage.t +++ b/t/92storage.t @@ -34,7 +34,7 @@ use DBICTest; plan tests => 6; -my $schema = DBICTest->init_schema(); +my $schema = DBICTest->init_schema( sqlite_use_file => 1 ); is( ref($schema->storage), 'DBIx::Class::Storage::DBI::SQLite', 'Storage reblessed correctly into DBIx::Class::Storage::DBI::SQLite' );