From: Matt S Trout Date: Wed, 11 Jan 2006 18:54:11 +0000 (+0000) Subject: Added copy test from Purge X-Git-Tag: v0.05005~117^2~69 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f6e5af93d6cbbd2fdec4b5cfcdac5cb681e55c6;p=dbsrgits%2FDBIx-Class.git Added copy test from Purge --- diff --git a/t/run/10auto.tl b/t/run/10auto.tl index d715304..1d6b569 100644 --- a/t/run/10auto.tl +++ b/t/run/10auto.tl @@ -1,6 +1,6 @@ sub run_tests { -plan tests => 1; +plan tests => 2; DBICTest->class("Artist")->load_components(qw/PK::Auto::SQLite/); @@ -9,6 +9,9 @@ my $artist = DBICTest->class("Artist")->create( { name => 'Auto' } ); $artist->name( 'Auto Change' ); ok($artist->update, 'update on object created without PK ok'); +my $copied = $artist->copy({ name => 'Don\'t tell the RIAA', artistid => undef }); +is($copied->name, 'Don\'t tell the RIAA', "Copied with PKs ok."); + } 1;