summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2012-11-29 23:09:11 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2012-11-29 23:09:11 +0100
commit5c76f782d7b85b41e2bfeb2dfb65994bdb77a591 (patch)
treee2bbaa1559735c46cf550570947151b1ddae0925 /tests
parentfe33635a880bfb6f3d182f20aad5542b9f6152ce (diff)
downloadhakyll-5c76f782d7b85b41e2bfeb2dfb65994bdb77a591.tar.gz
Add test case for group/list combo
Works by default on this branch, for more information see commit c12ef90f802be9e1669c11a4289597a7a47e741c
Diffstat (limited to 'tests')
-rw-r--r--tests/Hakyll/Core/Rules/Tests.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Hakyll/Core/Rules/Tests.hs b/tests/Hakyll/Core/Rules/Tests.hs
index 4f0b40e..a8a9dc1 100644
--- a/tests/Hakyll/Core/Rules/Tests.hs
+++ b/tests/Hakyll/Core/Rules/Tests.hs
@@ -15,9 +15,11 @@ import Test.HUnit (Assertion, assert, (@=?))
--------------------------------------------------------------------------------
import Hakyll.Core.Compiler
import Hakyll.Core.Identifier
+import Hakyll.Core.Identifier.Pattern
import Hakyll.Core.Routes
import Hakyll.Core.Rules
import Hakyll.Core.Rules.Internal
+import Hakyll.Core.Writable.CopyFile
import Hakyll.Web.Page
import TestSuite.Util
@@ -48,6 +50,7 @@ rulesTest = withTestStore $ \store -> do
, "russian.md"
, raw "example.md"
, raw "russian.md"
+ , setVersion (Just "nav") "example.md"
]
@@ -63,3 +66,8 @@ rules = do
match "*.md" $ version "raw" $ do
route idRoute
compile getResourceString
+
+ -- Regression test
+ version "nav" $ match (fromList ["example.md"]) $ do
+ route idRoute
+ compile copyFileCompiler