summaryrefslogtreecommitdiff
path: root/tests/main.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.hs')
-rw-r--r--tests/main.hs16
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