X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F68inflate.t;h=2e7c374ca27a9e8d11d0598b3a07c5543129f1da;hb=d36325cc288373f9113d1007d6f4470a05f51cb8;hp=9cbaab9fe03d299a214512bb33c3d567d886ccde;hpb=bd3d5a5e91e959cc7f4fcf0d10a15d65412115b9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/68inflate.t b/t/68inflate.t index 9cbaab9..2e7c374 100644 --- a/t/68inflate.t +++ b/t/68inflate.t @@ -11,7 +11,7 @@ my $schema = DBICTest->init_schema(); eval { require DateTime }; plan skip_all => "Need DateTime for inflation tests" if $@; -plan tests => 22; +plan tests => 20; DBICTest::Schema::CD->inflate_column( 'year', { inflate => sub { DateTime->new( year => shift ) }, @@ -90,12 +90,6 @@ ok(!$@, 'update using scalarref ok'); $cd = $schema->resultset("CD")->find(3); is($cd->year->year, $before_year + 1, 'deflate ok'); -my $upd = { 'year' => $now->truncate(to => 'month'), title => 'An Updated Title' }; -my $upd_copy = { %$upd }; -eval { $cd->update($upd) }; -ok(!$@, 'update worked okay'); -ok(exists $upd->{year} && $upd->{year} == $upd_copy->{year}, "update doesn't change passed hashref"); - # discard_changes test $cd = $schema->resultset("CD")->find(3); # inflate the year