Added failing tests for inflate_column
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest.pm
index f3418c4..e23f5ef 100755 (executable)
@@ -157,6 +157,10 @@ DBICTest::CD->add_relationship(
     { 'foreign.cd' => 'self.cdid' }
 );
 #DBICTest::CD->might_have(liner_notes => 'DBICTest::LinerNotes' => qw/notes/);
+DBICTest::CD->inflate_column( 'year',
+    { inflate => sub { DateTime->new( year => shift ) } },
+    { deflate => sub { shift->year } }
+);
 
 package DBICTest::Artist;