]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/pagename.t
Add keepextension parameter to htmlize hook. (Willu)
[ikiwiki.git] / t / pagename.t
index 96e6a87f11e87b4e8e945ccc077dc40a2e826ef9..c7f1ce1801d92ee470f901e7f9f1eca35a6fa6fb 100755 (executable)
@@ -6,7 +6,7 @@ use Test::More tests => 5;
 BEGIN { use_ok("IkiWiki"); }
 
 # Used internally.
 BEGIN { use_ok("IkiWiki"); }
 
 # Used internally.
-$IkiWiki::hooks{htmlize}{mdwn}=1;
+$IkiWiki::hooks{htmlize}{mdwn}{call}=sub {};
 
 is(pagename("foo.mdwn"), "foo");
 is(pagename("foo/bar.mdwn"), "foo/bar");
 
 is(pagename("foo.mdwn"), "foo");
 is(pagename("foo/bar.mdwn"), "foo/bar");