1 BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
2 use DBIx::Class::Optional::Dependencies -skip_all_without => qw( cdbicompat rdbms_sqlite ic_dt );
7 # Class::DBI in its infinate wisdom allows implicit inflation
8 # and deflation of foriegn clas looups in has_a relationships.
9 # for inflate it would call ->new on the foreign_class and for
10 # deflate it would "" the column value and allow for overloading
15 use lib 't/cdbi/testlib';
18 ok(ImplicitInflate->can('db_Main'), 'set_db()');
19 is(ImplicitInflate->__driver, "SQLite", 'Driver set correctly');
21 my $now = DateTime->now;
23 ImplicitInflate->create({
24 update_datetime => $now,
28 my $implicit_inflate = ImplicitInflate->retrieve(text => 'Test Data');
30 ok($implicit_inflate->update_datetime->isa('DateTime'), 'Date column inflated correctly');
31 is($implicit_inflate->update_datetime => $now, 'Date has correct year');