06069724ad0c0fd2395d40c1afa7670d27f3f985
[dbsrgits/DBIx-Class.git] / t / 39load_namespaces_exception.t
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5 use Test::More;
6
7 use lib qw(t/lib);
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');