X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F68inflate.t;h=ea917f801c86f7f369180d97473674b005a8368f;hb=e7d1440fa81ee32af07118f85cd0310e48e14e09;hp=2e7c374ca27a9e8d11d0598b3a07c5543129f1da;hpb=ad5d0ee95a0b857e14c822818c3fe6059d022c40;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/68inflate.t b/t/68inflate.t index 2e7c374..ea917f8 100644 --- a/t/68inflate.t +++ b/t/68inflate.t @@ -5,7 +5,6 @@ use Test::More; use lib qw(t/lib); use DBICTest; -DBICTest::Schema::CD->add_column('year'); my $schema = DBICTest->init_schema(); eval { require DateTime }; @@ -13,7 +12,9 @@ plan skip_all => "Need DateTime for inflation tests" if $@; plan tests => 20; -DBICTest::Schema::CD->inflate_column( 'year', +$schema->class('CD') +#DBICTest::Schema::CD +->inflate_column( 'year', { inflate => sub { DateTime->new( year => shift ) }, deflate => sub { shift->year } } );