X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F68inflate.t;h=3aa428da29af504734601187461fd4859eb21bf5;hb=c8f572405272013bb6c2c79dec8421bd6a9a3cc5;hp=ea917f801c86f7f369180d97473674b005a8368f;hpb=664a70fad7d9aaf7d38579cdafe934663ee4a9c3;p=dbsrgits%2FDBIx-Class.git diff --git a/t/68inflate.t b/t/68inflate.t index ea917f8..3aa428d 100644 --- a/t/68inflate.t +++ b/t/68inflate.t @@ -10,7 +10,7 @@ my $schema = DBICTest->init_schema(); eval { require DateTime }; plan skip_all => "Need DateTime for inflation tests" if $@; -plan tests => 20; +plan tests => 21; $schema->class('CD') #DBICTest::Schema::CD @@ -99,6 +99,10 @@ $cd->update({ year => \'year + 1'}); $cd->discard_changes; is($cd->year->year, $before_year + 1, 'discard_changes clears the inflated value'); + +my $copy = $cd->copy({ year => $now, title => "zemoose" }); + +isnt( $copy->year->year, $before_year, "copy" ); # eval { $cd->store_inflated_column('year', \'year + 1') }; # print STDERR "ERROR: $@" if($@);