Made PK::Auto::* shells since the functionality is now elsewhere
[dbsrgits/DBIx-Class.git] / t / run / 10auto.tl
index 1d6b569..7c795f4 100644 (file)
@@ -1,11 +1,13 @@
 sub run_tests {
+my $schema = shift;
 
 plan tests => 2;
 
-DBICTest->class("Artist")->load_components(qw/PK::Auto::SQLite/);
+$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 = DBICTest->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');