X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2F002goodperl.t;h=28b69a4c549e9709f17cefb38a0e4c2aef5ea11d;hb=470a8fa1710b22e2b381eef4cacb01bebaeff725;hp=f081ac719e4ba34277ef33eed9dff0604ae93ad1;hpb=8332f18114bf31468d886c634cfc889647bae8ef;p=kivitendo-erp.git diff --git a/t/002goodperl.t b/t/002goodperl.t index f081ac719..28b69a4c5 100644 --- a/t/002goodperl.t +++ b/t/002goodperl.t @@ -119,7 +119,8 @@ foreach my $file (@testitems) { next; } while (my $file_line = ) { - if ($file_line =~ m/(<\/?$tags>)/) { + last if $file_line =~ /^__END__/; + if ($file_line =~ m/(<\/?$tags>)/o) { $found_html_count++; $found_html .= $1; } @@ -127,10 +128,12 @@ foreach my $file (@testitems) { close (FILE); if (!$found_html_count) { ok(1,"$file does not contain HTML"); - } else { - TODO: { local $TODO = q(Templating is not final.); + } elsif ($found_html_count < 50) { + TODO: { local $TODO = q(Even little amounts of HTML should go away....); ok(0,"$file contains at least $found_html_count html tags."); } + } else { + ok(0,"$file contains at least $found_html_count html tags."); } }