Fix tests in scaffolding a bit
This commit is contained in:
parent
81e61c4b55
commit
0755761834
@ -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
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
module Application
|
||||
( makeApplication
|
||||
, getApplicationDev
|
||||
, makeFoundation
|
||||
) where
|
||||
|
||||
import Import
|
||||
|
||||
@ -16,4 +16,4 @@ test-suite integration-tests
|
||||
FlexibleContexts
|
||||
|
||||
build-depends: base >= 4 && < 5
|
||||
, yesod-test >= 0.1 && < 0.2
|
||||
, yesod-test
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
module TestHome (homeSpecs) where
|
||||
module HomeTest
|
||||
( homeSpecs
|
||||
) where
|
||||
|
||||
import Import
|
||||
import Yesod.Test
|
||||
|
||||
@ -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 }
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user