summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Core/Rules
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-11-30 10:40:46 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-11-30 10:40:46 +0100
commit93db3d652f37004075401f278433d7090beaf221 (patch)
treefd44b00248e015a842a0737860a7cbb94babb4e1 /tests/Hakyll/Core/Rules
parent5c76f782d7b85b41e2bfeb2dfb65994bdb77a591 (diff)
downloadhakyll-93db3d652f37004075401f278433d7090beaf221.tar.gz
Broken test case for routes in group/list combo
See ab34c2945196c51bcb9850163395a9c7b188ddde
Diffstat (limited to 'tests/Hakyll/Core/Rules')
-rw-r--r--tests/Hakyll/Core/Rules/Tests.hs11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/Hakyll/Core/Rules/Tests.hs b/tests/Hakyll/Core/Rules/Tests.hs
index a8a9dc1..4fcb19d 100644
--- a/tests/Hakyll/Core/Rules/Tests.hs
+++ b/tests/Hakyll/Core/Rules/Tests.hs
@@ -42,15 +42,16 @@ rulesTest = withTestStore $ \store -> do
-- Test that we have some identifiers and that the routes work out
assert $ all (`S.member` identifiers) expected
Just "example.html" @=? runRoutes routes "example.md"
- Just "example.md" @=? runRoutes routes (raw "example.md")
+ Just "example.md" @=? runRoutes routes (sv "raw" "example.md")
+ Just "example.md" @=? runRoutes routes (sv "nav" "example.md")
where
- raw = setVersion (Just "raw")
+ sv g = setVersion (Just g)
expected =
[ "example.md"
, "russian.md"
- , raw "example.md"
- , raw "russian.md"
- , setVersion (Just "nav") "example.md"
+ , sv "raw" "example.md"
+ , sv "raw" "russian.md"
+ , sv "nav" "example.md"
]