Allow specifying a custom loader_class in loader_options
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 24loader_subclass.t
CommitLineData
3953cbee 1use strict;
2use warnings;
3use Test::More;
4use lib qw(t/lib);
5use make_dbictest_db;
6
7{
8 package DBICTest::Schema;
9 use base qw/ DBIx::Class::Schema::Loader /;
10 __PACKAGE__->loader_options( loader_class => 'TestLoaderSubclass' );
11}
12
13plan tests => 2;
14
15my $schema = DBICTest::Schema->connect($make_dbictest_db::dsn);
16isa_ok($schema->storage, 'DBIx::Class::Storage::DBI::SQLite');
17isa_ok($schema->_loader, 'TestLoaderSubclass');