fix test warning (double "my")
[dbsrgits/DBIx-Class.git] / t / 68inflate.t
index 2e7c374..ea917f8 100644 (file)
@@ -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 } }
 );