summaryrefslogtreecommitdiff
path: root/tests/Page.hs
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2010-10-04 14:14:41 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2010-10-04 14:14:41 +0200
commit371bc0347b21ff6693f9badeae4962433d42cc55 (patch)
tree1f62458183571d0d6566c095dbb57a0635699a37 /tests/Page.hs
parentc73c09270d7605940c1064aef50675c0cff912c8 (diff)
downloadhakyll-371bc0347b21ff6693f9badeae4962433d42cc55.tar.gz
Clean up yesterday's work, fix tests
Diffstat (limited to 'tests/Page.hs')
-rw-r--r--tests/Page.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/Page.hs b/tests/Page.hs
index 27163b2..be49ad0 100644
--- a/tests/Page.hs
+++ b/tests/Page.hs
@@ -13,7 +13,8 @@ import Test.HUnit
import System.Directory (getTemporaryDirectory, removeFile)
import System.FilePath ((</>))
-import Text.Hakyll.Internal.Page
+import Text.Hakyll.Page
+import Text.Hakyll.Pandoc
import Text.Hakyll.Context
import Text.Hakyll.HakyllAction
import Text.Hakyll
@@ -35,7 +36,7 @@ test_readPage fileName content assertion = do
temporaryDir <- getTemporaryDirectory
let temporaryFile = temporaryDir </> fileName
writeFile temporaryFile content
- page <- runDefaultHakyll (readPage temporaryFile)
+ page <- runDefaultHakyll (runHakyllAction $ createPage temporaryFile)
removeFile temporaryFile
return $ assertion page