diff options
author | Clint Adams <clint@softwarefreedom.org> | 2013-10-24 15:34:15 -0400 |
---|---|---|
committer | Clint Adams <clint@softwarefreedom.org> | 2013-10-24 17:39:13 -0400 |
commit | 515338784b8fc2fb5435ee4e061c092ff754d6cf (patch) | |
tree | ceb2c2660cacaa3b90a80836a9f1e0dd8941ffa2 /tests/main.hs | |
parent | 1725e252b7bd6bec9faecb0249961343bb27afb0 (diff) |
Use newer persistent and newer Yesod
Diffstat (limited to 'tests/main.hs')
-rw-r--r-- | tests/main.hs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/main.hs b/tests/main.hs index d475fe8..672220d 100644 --- a/tests/main.hs +++ b/tests/main.hs @@ -5,18 +5,18 @@ module Main where import Import -import Settings -import Yesod.Logger (defaultDevelopmentLogger) import Yesod.Default.Config import Yesod.Test import Application (makeFoundation) import HomeTest -main :: IO a +main :: IO () main = do - conf <- loadConfig $ (configSettings Testing) { csParseExtra = parseExtra } - logger <- defaultDevelopmentLogger - foundation <- makeFoundation conf logger - app <- toWaiAppPlain foundation - runTests app (connPool foundation) homeSpecs + conf <- Yesod.Default.Config.loadConfig $ (configSettings Testing) + { csParseExtra = parseExtra + } + foundation <- makeFoundation conf + hspec $ do + yesodSpec foundation $ do + homeSpecs |