summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-23 17:23:31 -0400
committerJoey Hess <joey@kitenet.net>2010-04-23 17:23:31 -0400
commit9b112cc986023e3a9ec5a4b5e9824af05e80c4d8 (patch)
tree6dec75570de80720577316c735def58835d445d5 /t
parent6c64ce0336240be16eeae81313e53c630cb196bc (diff)
add test case to ensure all templates are documented
Diffstat (limited to 't')
-rwxr-xr-xt/templates_documented.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/templates_documented.t b/t/templates_documented.t
new file mode 100755
index 000000000..826c51d36
--- /dev/null
+++ b/t/templates_documented.t
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+use warnings;
+use strict;
+use Test::More 'no_plan';
+
+$/=undef;
+open(IN, "doc/templates.mdwn") || die "doc/templates.mdwn: $!";
+my $page=<IN>;
+close IN;
+
+foreach my $file (glob("templates/*.tmpl")) {
+ $file=~s/templates\///;
+ ok($page =~ /\Q$file\E/, "$file documented on doc/templates.mdwn");
+}