From a1a17acb326020f1b57f587230cb439e901784df Mon Sep 17 00:00:00 2001 From: Daniel Gnoutcheff Date: Fri, 27 May 2016 16:00:00 -0400 Subject: Ported to Debian jessie Most of the churn here comes from rebasing the Yesod boilerplate. --- tests/main.hs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'tests/main.hs') diff --git a/tests/main.hs b/tests/main.hs index d475fe8..a869b66 100644 --- a/tests/main.hs +++ b/tests/main.hs @@ -5,18 +5,19 @@ module Main where import Import -import Settings -import Yesod.Logger (defaultDevelopmentLogger) import Yesod.Default.Config import Yesod.Test +import Test.Hspec (hspec) 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 -- cgit v1.2.3