X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frun%2F10auto.tl;h=6e474a5d533c77230036c3fdf83d4a7d15e22b3f;hb=f9db552739e7c980acb4280cb2b6c739a769da5a;hp=2294d6d1de4aa5d71c66f12d3511a6ec22f27875;hpb=74c188254931295b3d9b76b55819555327f3fce3;p=dbsrgits%2FDBIx-Class.git diff --git a/t/run/10auto.tl b/t/run/10auto.tl index 2294d6d..6e474a5 100644 --- a/t/run/10auto.tl +++ b/t/run/10auto.tl @@ -6,7 +6,7 @@ plan tests => 2; $schema->class("Artist")->load_components(qw/PK::Auto::SQLite/); # 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');