X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F10auto.tl;h=7c795f40b460e4022b4cdbe0704ebae6f0f4f618;hb=5faa95affd5bb016d0fa81f7f99411ce4db5ff08;hp=2294d6d1de4aa5d71c66f12d3511a6ec22f27875;hpb=1edaf6fef6739e4d809ae6adfbeaa6b660ca29b3;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/run/10auto.tl b/t/run/10auto.tl index 2294d6d..7c795f4 100644 --- a/t/run/10auto.tl +++ b/t/run/10auto.tl @@ -4,9 +4,10 @@ my $schema = shift; plan tests => 2; $schema->class("Artist")->load_components(qw/PK::Auto::SQLite/); + # Should just be PK::Auto but this ensures the compat shim works # add an artist without primary key to test Auto -my $artist = $schema->class("Artist")->create( { name => 'Auto' } ); +my $artist = $schema->resultset("Artist")->create( { name => 'Auto' } ); $artist->name( 'Auto Change' ); ok($artist->update, 'update on object created without PK ok');