summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-07-15 16:25:39 +0200
committerintrigeri <intrigeri@boum.org>2008-07-15 16:25:39 +0200
commit35668b87d3247a7de6c4dbb9edd7e0d909603524 (patch)
tree80ea51c4c4aea4c141d7063249e435d45cd46cd4 /t
parent486f460132434db1eaff92dcadb265011f394bf1 (diff)
pedigree rename to parentlinks: rename/adapt everything
* Renamed to parentlinks every single variable or function called pedigree * Removed the parentlinks function from Render.pm * Enabled the new parentlinks plugin by default * Adapted testsuite and documentation to reflate the above facts Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 't')
-rwxr-xr-xt/parentlinks.t13
-rw-r--r--t/parentlinks/templates/parentlinks.tmpl4
2 files changed, 8 insertions, 9 deletions
diff --git a/t/parentlinks.t b/t/parentlinks.t
index 74871cfa8..593937a97 100755
--- a/t/parentlinks.t
+++ b/t/parentlinks.t
@@ -1,6 +1,6 @@
#!/usr/bin/perl
# -*- cperl-indent-level: 8; -*-
-# Testcases for the Ikiwiki pedigree plugin.
+# Testcases for the Ikiwiki parentlinks plugin.
use warnings;
use strict;
@@ -14,13 +14,12 @@ BEGIN { use_ok("IkiWiki"); }
%config=IkiWiki::defaultconfig();
$config{srcdir}=$config{destdir}="/dev/null";
$config{underlaydir}="underlays/basewiki";
-$config{templatedir}="t/pedigree/templates";
+$config{templatedir}="t/parentlinks/templates";
IkiWiki::loadplugins();
IkiWiki::checkconfig();
-ok(IkiWiki::loadplugin("pedigree"), "pedigree plugin loaded");
# Test data
-$expected{'pedigree'} =
+$expected{'parentlinks'} =
{
"" => [],
"ikiwiki" => [],
@@ -42,7 +41,7 @@ sub test_loop($$) {
my $template;
my %params;
- ok($template=template('pedigree.tmpl'), "template created");
+ ok($template=template('parentlinks.tmpl'), "template created");
ok($params{template}=$template, "params populated");
while ((my $page, my $exp) = each %{$expected}) {
@@ -53,7 +52,7 @@ sub test_loop($$) {
# manually run the plugin hook
$params{page}=$page;
$template->clear_params();
- IkiWiki::Plugin::pedigree::pagetemplate(%params);
+ IkiWiki::Plugin::parentlinks::pagetemplate(%params);
my $res=$template->param($loop);
is(scalar(@$res), $pagedepth, "$msgprefix: path length");
@@ -80,4 +79,4 @@ sub test_loop($$) {
}
# Main
-test_loop('pedigree', $expected{'pedigree'});
+test_loop('parentlinks', $expected{'parentlinks'});
diff --git a/t/parentlinks/templates/parentlinks.tmpl b/t/parentlinks/templates/parentlinks.tmpl
index 5fa25733a..3ca3b0030 100644
--- a/t/parentlinks/templates/parentlinks.tmpl
+++ b/t/parentlinks/templates/parentlinks.tmpl
@@ -1,4 +1,4 @@
-<!-- This template file only has to "use" the loops tested by pedigree.t -->
+<!-- This template file only has to "use" the loops tested by parentlinks.t -->
-<TMPL_LOOP NAME="PEDIGREE">
+<TMPL_LOOP NAME="PARENTLINKS">
</TMPL_LOOP>