diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2014-04-21 11:20:56 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2014-04-21 11:20:56 +0200 |
commit | 15a9b90988e270ad011d74762caa9a255d839be5 (patch) | |
tree | d1d9ea1702565e693b4964c1f84d320f7b75dc51 /tests | |
parent | 889e6f59f761795af3f2cb83c2a551b9c8478d66 (diff) | |
parent | 19788ede4e1ea7ba42974447b0e49b9bf3ff4a86 (diff) | |
download | hakyll-15a9b90988e270ad011d74762caa9a255d839be5.tar.gz |
Merge pull request #243 from izzycecil/FIX_toSiteRoot
Fix `toSiteRoot` so that it properly deals with "./"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Hakyll/Web/Html/Tests.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Html/Tests.hs b/tests/Hakyll/Web/Html/Tests.hs index e150ea2..bad5ebc 100644 --- a/tests/Hakyll/Web/Html/Tests.hs +++ b/tests/Hakyll/Web/Html/Tests.hs @@ -59,6 +59,8 @@ tests = testGroup "Hakyll.Web.Html.Tests" $ concat , "." @=? toSiteRoot "index.html" , "." @=? toSiteRoot "/index.html" , "../.." @=? toSiteRoot "foo/bar/qux" + , ".." @=? toSiteRoot "./foo/bar.html" + , ".." @=? toSiteRoot "/foo/./bar.html" ] , fromAssertions "isExternal" |