From: Rafael Kitover Date: Tue, 7 Jun 2011 07:55:46 +0000 (-0400) Subject: fix backcompat tests X-Git-Tag: 0.07011~82 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1e0784976e69ea950334c678371cca7e4817ccb2;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix backcompat tests --- diff --git a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm index 0a1e2d7..c45c131 100644 --- a/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm +++ b/t/backcompat/0.04006/lib/dbixcsl_common_tests.pm @@ -43,7 +43,7 @@ sub _monikerize { sub run_tests { my $self = shift; - plan tests => 98; + plan tests => 97; $self->create(); @@ -84,19 +84,9 @@ sub run_tests { $warn_count++ if grep /Dynamic schema detected/, @loader_warnings; $warn_count++ for grep /^Bad table or view/, @loader_warnings; - if($self->{skip_rels}) { - is(scalar(@loader_warnings), $warn_count) - or diag "Did not get the expected 0 warnings. Warnings are: " - . join('',@loader_warnings); - ok(1); - } - else { - $warn_count++; - is(scalar(@loader_warnings), $warn_count) - or diag "Did not get the expected 1 warning. Warnings are: " - . join('',@loader_warnings); - is(grep(/loader_test9 has no primary key/, @loader_warnings), 1); - } + is(scalar(@loader_warnings), $warn_count) + or diag "Did not get the expected 0 warnings. Warnings are: " + . join('',@loader_warnings); } my $conn = $schema_class->clone;