Fix building on perls with no . in @INC
[dbsrgits/DBIx-Class.git] / xt / extra / diagnostics / search_in_void_ctx.t
CommitLineData
c0329273 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2
0e7a447e 3use strict;
4use warnings;
5
6use Test::More;
7use Test::Exception;
8
c0329273 9
0e7a447e 10use DBICTest;
11
12my $schema = DBICTest->init_schema(no_deploy => 1);
13
14throws_ok {
15 $schema->resultset('Artist')->search
16} qr/\Qsearch is *not* a mutator/, 'Proper exception on search in void ctx';
17
18done_testing;