]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - t/pagename.t
modify to skip tests if the neccessary perl modules are not available
[git.ikiwiki.info.git] / t / pagename.t
index 96e6a87f11e87b4e8e945ccc077dc40a2e826ef9..c7f1ce1801d92ee470f901e7f9f1eca35a6fa6fb 100755 (executable)
@@ -6,7 +6,7 @@ use Test::More tests => 5;
 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");