]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
tag test: assert that the only autofiles are the ones we want
authorSimon McVittie <smcv@debian.org>
Tue, 28 Dec 2010 13:39:26 +0000 (13:39 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 28 Dec 2010 13:41:59 +0000 (13:41 +0000)
t/tag.t

diff --git a/t/tag.t b/t/tag.t
index ec17d543418e4bb0bcc00fd81aa4ceb22d0f74a7..693900c43e20cf8e72dce43b83c254c5fc94bd9d 100755 (executable)
--- 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);