Cleanup shebang lines of all maint/example scripts, remove from tests entirely
[dbsrgits/DBIx-Class.git] / t / 39load_namespaces_exception.t
CommitLineData
b488020e 1use strict;
2use warnings;
3use Test::More;
4
5use lib qw(t/lib);
6use DBICTest; # do not remove even though it is not used
7
8plan tests => 1;
9
10eval {
11 package DBICNSTest;
12 use base qw/DBIx::Class::Schema/;
13 __PACKAGE__->load_namespaces(
14 result_namespace => 'Bogus',
15 resultset_namespace => 'RSet',
16 );
17};
18
19like ($@, qr/are you sure this is a real Result Class/, 'Clear exception thrown');