Fix tests in scaffolding a bit

This commit is contained in:
Michael Snoyman 2012-04-24 18:57:14 +03:00
parent 81e61c4b55
commit 0755761834
6 changed files with 10 additions and 3 deletions

View File

@ -182,6 +182,7 @@ scaffold = do
when useTests $ do
mkDir "tests"
writeFile' "tests/main.hs" $(codegen "tests/main.hs")
writeFile' "tests/HomeTest.hs" $(codegen "tests/HomeTest.hs")
S.writeFile (dir ++ "/config/favicon.ico")
$(runIO (S.readFile "scaffold/config/favicon.ico.cg") >>= \bs -> do

View File

@ -2,6 +2,7 @@
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import

View File

@ -16,4 +16,4 @@ test-suite integration-tests
FlexibleContexts
build-depends: base >= 4 && < 5
, yesod-test >= 0.1 && < 0.2
, yesod-test

View File

@ -1,4 +1,6 @@
module TestHome (homeSpecs) where
module HomeTest
( homeSpecs
) where
import Import
import Yesod.Test

View File

@ -11,6 +11,8 @@ import Yesod.Default.Config
import Yesod.Test
import Application (makeFoundation)
import HomeTest
main :: IO a
main = do
conf <- loadConfig $ (configSettings Testing) { csParseExtra = parseExtra }

View File

@ -1,5 +1,5 @@
name: yesod
version: 1.0.1.2
version: 1.0.1.3
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>
@ -31,6 +31,7 @@ extra-source-files:
scaffold/Import.hs.cg
scaffold/.ghci.cg
scaffold/tests/main.hs.cg
scaffold/tests/HomeTest.hs.cg
scaffold/Settings.hs.cg
scaffold/Settings/StaticFiles.hs.cg
scaffold/Application.hs.cg