summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2010-12-28 13:39:26 +0000
committerSimon McVittie <smcv@debian.org>2010-12-28 13:41:59 +0000
commiteeb0ec1862c855378a2d53701464304111a7ff05 (patch)
tree0df98c123faadc30bc00e6ec6493b9f8aa5f3879 /t
parent2415a7298b63b938c88c079543705e5db39827ee (diff)
tag test: assert that the only autofiles are the ones we want
Diffstat (limited to 't')
-rwxr-xr-xt/tag.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/tag.t b/t/tag.t
index ec17d5434..693900c43 100755
--- a/t/tag.t
+++ b/t/tag.t
@@ -3,7 +3,7 @@ package IkiWiki;
use warnings;
use strict;
-use Test::More tests => 21;
+use Test::More tests => 22;
BEGIN { use_ok("IkiWiki"); }
BEGIN { use_ok("IkiWiki::Render"); }
@@ -58,6 +58,7 @@ IkiWiki::Plugin::tag::preprocess_tag(page => "seven", numbers => undef, primes =
is($autofiles{"tags/lucky.mdwn"}{plugin}, "tag");
is($autofiles{"tags/numbers.mdwn"}{plugin}, "tag");
is($autofiles{"tags/primes.mdwn"}{plugin}, "tag");
+is_deeply([sort keys %autofiles], [qw(tags/lucky.mdwn tags/numbers.mdwn tags/primes.mdwn)]);
ok(!-e "t/tmp/tags/lucky.mdwn");
my (%pages, @del);