Merge 'reorganize_tests' into 'DBIx-Class-current'
[dbsrgits/DBIx-Class.git] / t / run / 29inflate_datetime.tl
CommitLineData
f86fcf0d 1sub run_tests {
2my $schema = shift;
3
4eval { require DateTime::Format::MySQL };
5plan skip_all => "Need DateTime::Format::MySQL for inflation tests" if $@;
6
7plan tests => 2;
8
9# inflation test
10my $event = $schema->resultset("Event")->find(1);
11
12isa_ok($event->starts_at, 'DateTime', 'DateTime returned');
13
14is($event->starts_at, '2006-04-25T22:24:33', 'Correct date/time');
15
16}
17
181;