Since .generated_pod is no longer shipped in-dist, move it to maint/
[dbsrgits/DBIx-Class-Historic.git] / t / relationship / unresolvable.t
CommitLineData
34b6b86f 1use strict;
2use warnings;
3
4use Test::More;
5use Test::Exception;
6
7use lib qw(t/lib);
8use DBICTest;
9
10my $schema = DBICTest->init_schema();
11
12my $cd = $schema->resultset('CD')->search ({}, { columns => ['year'], rows => 1 })->single;
13
14
15throws_ok (
16 sub { $cd->tracks },
17 qr/Unable to resolve relationship .+ column .+ not loaded from storage/,
18 'Correct exception on nonresolvable object-based condition'
19);
20
21done_testing;