X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ficdt%2Fengine_specific%2Fsqlite.t;fp=t%2Ficdt%2Fengine_specific%2Fsqlite.t;h=8a152ab4c775d79c2e24853bd54ef1c3629dd6c1;hb=a6543cfa5769989102af82b5308e23a4ebd3d24d;hp=29a00c0867e134ae451fa9a56eee9e9deceda56a;hpb=7154ff351df7c3dad11339bfdb739346cff194e3;p=dbsrgits%2FDBIx-Class.git diff --git a/t/icdt/engine_specific/sqlite.t b/t/icdt/engine_specific/sqlite.t index 29a00c0..8a152ab 100644 --- a/t/icdt/engine_specific/sqlite.t +++ b/t/icdt/engine_specific/sqlite.t @@ -15,19 +15,21 @@ use DBICTest; no_deploy => 1, # Deploying would cause an early rebless ); + my $storage = $schema->storage; + is( - ref $schema->storage, 'DBIx::Class::Storage::DBI', + ref $storage, 'DBIx::Class::Storage::DBI', 'Starting with generic storage' ); # Calling date_time_parser should cause the storage to be reblessed, # so that we can pick up datetime_parser_type from subclasses - my $parser = $schema->storage->datetime_parser(); + my $parser = $storage->datetime_parser(); is($parser, 'DateTime::Format::SQLite', 'Got expected storage-set datetime_parser'); - isa_ok($schema->storage, 'DBIx::Class::Storage::DBI::SQLite', 'storage'); + isa_ok($storage, 'DBIx::Class::Storage::DBI::SQLite', 'storage'); - ok(! $schema->storage->connected, 'Not yet connected'); + ok(! $storage->connected, 'Not yet connected'); } # so user's env doesn't screw us