X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F60core.t;h=41adcb2bdb2236e16f62318d8f0f4858ee3afa41;hb=ccebe1f11c68b097a0446853b9c39a5af9cf8403;hp=69d99ed180aca016f98b3579b9465495ff284dc0;hpb=68888c09820ea25810c03cdc7748ee374a7772b2;p=dbsrgits%2FDBIx-Class.git diff --git a/t/60core.t b/t/60core.t index 69d99ed..41adcb2 100644 --- a/t/60core.t +++ b/t/60core.t @@ -45,6 +45,8 @@ my %fake_dirty = $art->get_dirty_columns(); is(scalar(keys(%fake_dirty)), 1, '1 fake dirty column'); ok(grep($_ eq 'name', keys(%fake_dirty)), 'name is fake dirty'); +ok($art->update, 'Update run'); + my $record_jp = $schema->resultset("Artist")->search(undef, { join => 'cds' })->search(undef, { prefetch => 'cds' })->next; ok($record_jp, "prefetch on same rel okay"); @@ -67,6 +69,8 @@ is(@art, 2, 'And then there were two'); is($art->in_storage, 0, "It knows it's dead"); +lives_ok { $art->update } 'No changes so update should be OK'; + dies_ok ( sub { $art->delete }, "Can't delete twice"); is($art->name, 'We Are In Rehab', 'But the object is still live');