Institute a central "load this first in testing" package
[dbsrgits/DBIx-Class.git] / t / 39load_namespaces_exception.t
1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2
3 use strict;
4 use warnings;
5 use Test::More;
6
7
8 use DBICTest; # do not remove even though it is not used
9
10 plan tests => 1;
11
12 eval {
13     package DBICNSTest;
14     use base qw/DBIx::Class::Schema/;
15     __PACKAGE__->load_namespaces(
16         result_namespace => 'Bogus',
17         resultset_namespace => 'RSet',
18     );
19 };
20
21 like ($@, qr/are you sure this is a real Result Class/, 'Clear exception thrown');