]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Turn positive test for wrong behaviour into a TODO test for right behaviour
authorSimon McVittie <smcv@debian.org>
Tue, 6 Jan 2015 00:23:33 +0000 (00:23 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 6 Jan 2015 00:28:18 +0000 (00:28 +0000)
We don't want ikiwiki's tests to stop passing when
Text::Textile is fixed.

t/textile-double-escape-bug.t

index fe73f331b2a844cc41b6ceb3e4f3dbb7995feb15..607706be40b0d68d989650b4fd612f7c4a805a4a 100755 (executable)
@@ -25,6 +25,9 @@ subtest 'Text::Textile apparently double-escapes HTML entities in hrefs' => sub
        chomp(my $txtl_html = IkiWiki::Plugin::textile::htmlize(
                content => qq{"$text":$href},
        ));
-       isnt($txtl_html, $good);
-       is($txtl_html, q{<p><a href="https://en.wikipedia.org/wiki/G&amp;ouml;del,_Escher,_Bach">G&ouml;del, Escher, Bach</a></p>});
+       TODO: {
+       local $TODO = "Text::Textile double-escapes the href";
+       is($txtl_html, $good);
+       isnt($txtl_html, q{<p><a href="https://en.wikipedia.org/wiki/G&amp;ouml;del,_Escher,_Bach">G&ouml;del, Escher, Bach</a></p>});
+       }
 };