diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-03-01 09:40:07 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-03-01 09:40:07 +0100 |
commit | fa057f30117e02f13f4a788eb3f52660ab8ab440 (patch) | |
tree | ec958d9a6cee07a52d6bbacdfefbd08533a5625a /tests | |
parent | d460fd88d13984aa0e851527f7ff65065230c411 (diff) | |
download | hakyll-fa057f30117e02f13f4a788eb3f52660ab8ab440.tar.gz |
Add `composeRoutes`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Hakyll/Core/Routes/Tests.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Hakyll/Core/Routes/Tests.hs b/tests/Hakyll/Core/Routes/Tests.hs index 201c656..3361846 100644 --- a/tests/Hakyll/Core/Routes/Tests.hs +++ b/tests/Hakyll/Core/Routes/Tests.hs @@ -18,4 +18,7 @@ tests = fromAssertions "runRoutes" , Just "tags/bar.xml" @=? runRoutes (gsubRoute "rss/" (const "")) "tags/rss/bar.xml" + , Just "tags/bar.xml" @=? + runRoutes (gsubRoute "rss/" (const "") `composeRoutes` + setExtension "xml") "tags/rss/bar" ] |