use strict;
use Test::More;
-use lib qw(t/lib);
+use lib qw(t/backcompat/0.04006/lib);
use make_dbictest_db;
+plan skip_all => 'set SCHEMA_LOADER_TESTS_BACKCOMPAT to enable these tests'
+ unless $ENV{SCHEMA_LOADER_TESTS_BACKCOMPAT};
+
{
$INC{'DBIx/Class/Storage/xyzzy.pm'} = 1;
eval { DBICTest::Schema->connect($make_dbictest_db::dsn) };
like(
$@,
- qr/Could not load storage_type loader "DBIx::Class::Schema::Loader::xyzzy": /,
+ qr/Could not load loader_class "DBIx::Class::Schema::Loader::xyzzy": /,
'Bad storage type dies correctly'
);