diff options
author | Simon McVittie <smcv@debian.org> | 2010-12-25 21:39:29 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-12-25 22:54:54 +0000 |
commit | f328a2eab2b416fad7e63d49cfaa3cf106b18868 (patch) | |
tree | bca87674e1fd142b52fe64e35914d9e958967fac /t | |
parent | fbb354d70e292cbf6e99e86bb4dd4416b02b67e4 (diff) |
po: test beautify_urlpath with po_link_to=current
Same behaviour as 'default'.
Diffstat (limited to 't')
-rwxr-xr-x | t/po.t | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -17,7 +17,7 @@ BEGIN { } } -use Test::More tests => 91; +use Test::More tests => 93; BEGIN { use_ok("IkiWiki"); } @@ -192,6 +192,10 @@ $msgprefix="beautify_urlpath (po_link_to=negotiated)"; is(IkiWiki::beautify_urlpath('test1/index.html'), './test1/', "$msgprefix test1/index.html"); is(IkiWiki::beautify_urlpath('test1/index.en.html'), './test1/', "$msgprefix test1/index.en.html"); is(IkiWiki::beautify_urlpath('test1/index.fr.html'), './test1/', "$msgprefix test1/index.fr.html"); +$config{po_link_to}='current'; +$msgprefix="beautify_urlpath (po_link_to=current)"; +is(IkiWiki::beautify_urlpath('test1/index.en.html'), './test1/index.en.html', "$msgprefix test1/index.en.html"); +is(IkiWiki::beautify_urlpath('test1/index.fr.html'), './test1/index.fr.html', "$msgprefix test1/index.fr.html"); ### re-scan refresh_n_scan('index.mdwn'); |