2 use Test::More tests => 3;
11 my $db = NewDB->new();
15 foreach my $artist ( qw/ purgen rage / ) {
16 RDBO::Artist->new( name => $artist )->save();
19 my $form = Form::Album->new();
23 ok( $form->validate( { title => 'Album1', artist_fk => 1 } ) );
25 my $item = $form->update_from_form();
28 is( $item->artist_id, 1 );
32 my $items = Rose::DB::Object::Manager->get_objects(object_class => 'RDBO::Artist');
34 $_->delete() foreach @$items;