]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - t/crazy-badass-perl-bug.t
add news item for ikiwiki 1.23
[git.ikiwiki.info.git] / t / crazy-badass-perl-bug.t
index 631752fa85b61a0ad3971ad334e7c45d2c1e16ac..78f0b50112885d44e490925270058620f705c477 100755 (executable)
@@ -13,9 +13,7 @@ BEGIN { use_ok("IkiWiki::Render"); }
 # Initialize htmlscrubber plugin
 %IkiWiki::config=IkiWiki::defaultconfig();
 $IkiWiki::config{srcdir}=$IkiWiki::config{destdir}="/dev/null";
-IkiWiki::checkconfig();
-is(IkiWiki::htmlize(".mdwn", IkiWiki::readfile("t/test1.mdwn")),
-       Encode::decode_utf8(qq{<p><img src="../images/o.jpg" alt="o" title="&oacute;" />\nóóóóó</p>\n}),
-       "utf8; bug #373203");
-ok(IkiWiki::htmlize(".mdwn", IkiWiki::readfile("t/test3.mdwn")),
+IkiWiki::loadplugins(); IkiWiki::checkconfig();
+ok(IkiWiki::htmlize("foo", "mdwn", IkiWiki::readfile("t/test1.mdwn")));
+ok(IkiWiki::htmlize("foo", "mdwn", IkiWiki::readfile("t/test3.mdwn")),
        "wtf?") for 1..100;