summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-08-21 01:24:38 +0200
committerlpsolit%gmail.com <>2007-08-21 01:24:38 +0200
commitc96f82df77c6135e81a7fb87cc18166f507e24e3 (patch)
tree9c200cfe7a26bb6901d97ae64cdeaedb08cd02c8 /t
parent5818051fbeb4aec81dd2b9ab861d149ee2f2e10f (diff)
downloadbugzilla-c96f82df77c6135e81a7fb87cc18166f507e24e3.tar.gz
bugzilla-c96f82df77c6135e81a7fb87cc18166f507e24e3.tar.xz
Bug 392186: Remove version headers from all templates - Patch by GavinS <bugzilla@chimpychompy.org> r/a=LpSolit
Diffstat (limited to 't')
-rw-r--r--t/004template.t16
1 files changed, 1 insertions, 15 deletions
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 = <TMPL>;
- 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;