From c96f82df77c6135e81a7fb87cc18166f507e24e3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 20 Aug 2007 23:24:38 +0000 Subject: Bug 392186: Remove version headers from all templates - Patch by GavinS r/a=LpSolit --- t/004template.t | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 't') diff --git a/t/004template.t b/t/004template.t index 034031c0b..d2f368c9c 100644 --- a/t/004template.t +++ b/t/004template.t @@ -39,7 +39,7 @@ use CGI qw(-no_debug); use File::Spec; use Template; use Test::More tests => ( scalar(@referenced_files) * scalar(@languages) - + $num_actual_files * 2 ); + + $num_actual_files ); # Capture the TESTOUT from Test::More or Test::Builder for printing errors. # This will handle verbosity for us automatically. @@ -132,20 +132,6 @@ foreach my $include_path (@include_paths) { ok(1, "$path doesn't exist, skipping test"); } } - - # check to see that all templates have a version string: - - foreach my $file (@{$actual_files{$include_path}}) { - my $path = File::Spec->catfile($include_path, $file); - open(TMPL, $path); - my $firstline = ; - if ($firstline =~ /\d+\.\d+\@[\w\.-]+/) { - ok(1,"$file has a version string"); - } else { - ok(0,"$file does not have a version string --ERROR"); - } - close(TMPL); - } } exit 0; -- cgit v1.2.3-24-g4f1b