X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=t%2Fdb_colinfo.t;h=3b20f8dcd463376f32fc158047e0a184b5bb58d5;hp=8f38f3bea85b3b901807b81f029a5be019ace354;hb=c0b04527bf13068608175e7ea33e1b9921b463dc;hpb=4fe66af811933c2fd9b212bfd3c9fa69c5803645 diff --git a/t/db_colinfo.t b/t/db_colinfo.t index 8f38f3b..3b20f8d 100755 --- a/t/db_colinfo.t +++ b/t/db_colinfo.t @@ -10,7 +10,7 @@ BEGIN { die "couldn't connect to mysql" unless (@databases); }; warn "error : $@ \n" if ($@); - my $testcount = ($@) ? 45 : 65 ; + my $testcount = ($@) ? 45 : 64 ; plan tests => $testcount; } @@ -138,10 +138,10 @@ SKIP: { } foreach my $colname (keys %correct_nullables) { - ok( $DB_Class->column_required($colname) == !$correct_nullables{$colname}, "nullable column $colname is required (via column_required)" ) + ok( $DB_Class->column_required($colname) == !$correct_nullables{$colname}, "nullable column $colname is required (via column_required)" ) } - ok($DB_Class->required_columns([qw/score/]), 'set required column(s)'); + ok($DB_Class->required_columns([qw/style name tasted score/]), 'set required column(s)'); foreach my $colname ( @{$DB_Class->required_columns()} ) { ok($correct_nullables{$colname} == 0 || $colname eq 'score',"nullable or required column $colname is required (via required_columns)" );