summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-01-31 22:32:10 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2009-01-31 22:32:10 +0000
commit46b880f8390ac82d746add01de38a05155743374 (patch)
tree03e35c9b153e94af2da76dba39157a89da6b4177 /t
parentfb0e3a7dbc7f71f8684c99c20d319671e60354b1 (diff)
Split apache404 into an independent plugin
Also make it ignore the 'do' parameter at Joey's suggestion, to have one less thing to remember when configuring.
Diffstat (limited to 't')
-rwxr-xr-xt/apache404.t (renamed from t/cgi_page_from_404.t)10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/cgi_page_from_404.t b/t/apache404.t
index adbbdf874..00fc35250 100755
--- a/t/cgi_page_from_404.t
+++ b/t/apache404.t
@@ -1,12 +1,14 @@
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 18;
+use Test::More tests => 17;
-BEGIN { use_ok("IkiWiki"); }
-BEGIN { use_ok("IkiWiki::CGI"); }
+BEGIN { use_ok("IkiWiki::Plugin::apache404"); }
-sub cgi_page_from_404 { return IkiWiki::cgi_page_from_404(shift, shift, shift); }
+sub cgi_page_from_404 {
+ return IkiWiki::Plugin::apache404::cgi_page_from_404(shift, shift,
+ shift);
+}
$IkiWiki::config{htmlext} = 'html';