Move some ICDT dependent (sub)tests around (no functional changes)
[dbsrgits/DBIx-Class.git] / t / icdt / datetime_missing_deps.t
CommitLineData
24f5cbcb 1use strict;
2use warnings;
3
4use Test::More;
5use Test::Exception;
6use lib qw(t/lib);
7use DBICTest;
8
9my $no_class = '_DBICTEST_NONEXISTENT_CLASS_';
10
11my $schema = DBICTest->init_schema();
12$schema->storage->datetime_parser_type($no_class);
13
14my $event = $schema->resultset('Event')->find(1);
15
16# test that datetime_undef_if_invalid does not eat the missing dep exception
17throws_ok {
18 my $dt = $event->starts_at;
19} qr{Can't locate ${no_class}\.pm};
20
21done_testing;