summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-01-06 09:51:09 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2013-01-06 09:51:09 +0100
commit18b6ac5ad42e50e75b9ee9fcfc8aef00f5a00957 (patch)
tree57beaf14230266e7eae2a4016625359593163ab6 /tests
parent6b7fbad7fe8634fd3c1fec37636bde7609270d31 (diff)
downloadhakyll-18b6ac5ad42e50e75b9ee9fcfc8aef00f5a00957.tar.gz
Add create in addition to match
Diffstat (limited to 'tests')
-rw-r--r--tests/Hakyll/Core/Identifier/Tests.hs13
-rw-r--r--tests/Hakyll/Core/Runtime/Tests.hs2
2 files changed, 2 insertions, 13 deletions
diff --git a/tests/Hakyll/Core/Identifier/Tests.hs b/tests/Hakyll/Core/Identifier/Tests.hs
index 8a8ed7c..2518022 100644
--- a/tests/Hakyll/Core/Identifier/Tests.hs
+++ b/tests/Hakyll/Core/Identifier/Tests.hs
@@ -6,7 +6,6 @@ module Hakyll.Core.Identifier.Tests
--------------------------------------------------------------------------------
-import Data.Monoid (mappend, mempty)
import Test.Framework (Test, testGroup)
import Test.HUnit ((@=?))
@@ -20,22 +19,12 @@ import TestSuite.Util
--------------------------------------------------------------------------------
tests :: Test
tests = testGroup "Hakyll.Core.Identifier.Tests" $ concat
- [ isLiteralTests
- , captureTests
+ [ captureTests
, matchesTests
]
--------------------------------------------------------------------------------
-isLiteralTests :: [Test]
-isLiteralTests = fromAssertions "isLiteral"
- [ Just "index.html" @=? fromLiteral "index.html"
- , Nothing @=? fromLiteral "posts/*.markdown"
- , Just "test.txt" @=? fromLiteral ("test.txt" `mappend` mempty)
- ]
-
-
---------------------------------------------------------------------------------
captureTests :: [Test]
captureTests = fromAssertions "capture"
[ Just ["bar"] @=? capture "foo/**" "foo/bar"
diff --git a/tests/Hakyll/Core/Runtime/Tests.hs b/tests/Hakyll/Core/Runtime/Tests.hs
index fa1446f..4b41bf5 100644
--- a/tests/Hakyll/Core/Runtime/Tests.hs
+++ b/tests/Hakyll/Core/Runtime/Tests.hs
@@ -34,7 +34,7 @@ case01 = withTestConfiguration $ \config -> do
>>= saveSnapshot "raw"
>>= return . renderPandoc
- match "bodies.txt" $ do
+ create ["bodies.txt"] $ do
route idRoute
compile $ do
items <- loadAllSnapshots "*.md" "raw"