DBIx::Class is now a component loader
[dbsrgits/DBIx-Class.git] / t / 10auto.t
CommitLineData
b6e40530 1use Test::More;
2
b6e40530 3plan tests => 2;
4
5use lib qw(t/lib);
6
7use_ok('DBICTest');
8
126042ee 9DBICTest::Artist->load_components(qw/PK::Auto::SQLite/);
b6e40530 10
11# add an artist without primary key to test Auto
12my $artist = DBICTest::Artist->create( { name => 'Auto' } );
13$artist->name( 'Auto Change' );
14ok($artist->update, 'update on object created without PK ok');