Added tests for insert_or_update, moved Auto test to own file
[dbsrgits/DBIx-Class.git] / t / 10auto.t
CommitLineData
b6e40530 1use Test::More;
2
3use DBIx::Class::PK::Auto;
4use DBIx::Class::PK::Auto::SQLite;
5
6plan tests => 2;
7
8use lib qw(t/lib);
9
10use_ok('DBICTest');
11
12unshift(@DBICTest::Artist::ISA, qw/DBIx::Class::PK::Auto
13 DBIx::Class::PK::Auto::SQLite/);
14
15# add an artist without primary key to test Auto
16my $artist = DBICTest::Artist->create( { name => 'Auto' } );
17$artist->name( 'Auto Change' );
18ok($artist->update, 'update on object created without PK ok');