X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F69update.t;h=46868760efa829347a517dff89d600dfe82bfb5e;hb=40b2fcfe2daed009b1bd78d78f851937b333a149;hp=b11ebde06eb23ced31e7640c0b96f6a4e3d79ec9;hpb=5a9e0e60ac1a8f30b6e7663c6a7315998c4d5e9a;p=dbsrgits%2FDBIx-Class.git diff --git a/t/69update.t b/t/69update.t index b11ebde..4686876 100644 --- a/t/69update.t +++ b/t/69update.t @@ -9,7 +9,7 @@ my $schema = DBICTest->init_schema(); BEGIN { eval "use DBD::SQLite"; - plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 5); + plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 6); } my $art = $schema->resultset("Artist")->find(1); @@ -30,3 +30,7 @@ $art->discard_changes; ok($art->update({ artistid => 100 }), 'update allows pk mutation'); is($art->artistid, 100, 'pk mutation applied'); + +my $art_100 = $schema->resultset("Artist")->find(100); +$art_100->artistid(101); +ok($art_100->update(), 'update allows pk mutation via column accessor');