From 6e99d20972bec95d3502ef7549d74f67b4cf0001 Mon Sep 17 00:00:00 2001 From: Guillermo Ramos Date: Sat, 27 Sep 2014 15:34:15 +0200 Subject: Initial commit (using Yesod's scaffolding) --- tests/main.hs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/main.hs (limited to 'tests/main.hs') diff --git a/tests/main.hs b/tests/main.hs new file mode 100644 index 0000000..a869b66 --- /dev/null +++ b/tests/main.hs @@ -0,0 +1,23 @@ +{-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE NoMonomorphismRestriction #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} + +module Main where + +import Import +import Yesod.Default.Config +import Yesod.Test +import Test.Hspec (hspec) +import Application (makeFoundation) + +import HomeTest + +main :: IO () +main = do + conf <- Yesod.Default.Config.loadConfig $ (configSettings Testing) + { csParseExtra = parseExtra + } + foundation <- makeFoundation conf + hspec $ do + yesodSpec foundation $ do + homeSpecs -- cgit v1.2.3