More test hackage, some cleanup in ResultSet
[dbsrgits/DBIx-Class.git] / t / run / 10auto.tl
index 2294d6d..6e474a5 100644 (file)
@@ -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');