Bump version to accomodate pre-beta testers
[dbsrgits/DBIx-Class.git] / t / icdt / datetime_missing_deps.t
CommitLineData
c0329273 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2
24f5cbcb 3use strict;
4use warnings;
5
6use Test::More;
7use Test::Exception;
c0329273 8
24f5cbcb 9use DBICTest;
10
11my $no_class = '_DBICTEST_NONEXISTENT_CLASS_';
12
13my $schema = DBICTest->init_schema();
14$schema->storage->datetime_parser_type($no_class);
15
16my $event = $schema->resultset('Event')->find(1);
17
18# test that datetime_undef_if_invalid does not eat the missing dep exception
19throws_ok {
20 my $dt = $event->starts_at;
21} qr{Can't locate ${no_class}\.pm};
22
23done_testing;