hspec 1.2
This commit is contained in:
parent
ebc737a5cb
commit
014732dac8
@ -109,7 +109,7 @@ test-suite tests
|
|||||||
|
|
||||||
cpp-options: -DTEST
|
cpp-options: -DTEST
|
||||||
build-depends: base
|
build-depends: base
|
||||||
,hspec >= 1.1 && < 1.2
|
,hspec >= 1.2 && < 1.3
|
||||||
,wai-test
|
,wai-test
|
||||||
,wai
|
,wai
|
||||||
,yesod-core
|
,yesod-core
|
||||||
|
|||||||
@ -23,7 +23,7 @@ library
|
|||||||
, persistent >= 1.0 && < 1.1
|
, persistent >= 1.0 && < 1.1
|
||||||
, template-haskell
|
, template-haskell
|
||||||
, transformers >= 0.2.2 && < 0.4
|
, transformers >= 0.2.2 && < 0.4
|
||||||
, data-default >= 0.3 && < 0.5
|
, data-default
|
||||||
, xss-sanitize >= 0.3.0.1 && < 0.4
|
, xss-sanitize >= 0.3.0.1 && < 0.4
|
||||||
, blaze-builder >= 0.2.1.4 && < 0.4
|
, blaze-builder >= 0.2.1.4 && < 0.4
|
||||||
, network >= 2.2 && < 2.4
|
, network >= 2.2 && < 2.4
|
||||||
|
|||||||
@ -42,7 +42,7 @@ test-suite runtests
|
|||||||
, yesod-routes
|
, yesod-routes
|
||||||
, text >= 0.5 && < 0.12
|
, text >= 0.5 && < 0.12
|
||||||
, HUnit >= 1.2 && < 1.3
|
, HUnit >= 1.2 && < 1.3
|
||||||
, hspec >= 0.6 && < 1.2
|
, hspec >= 1.2 && < 1.3
|
||||||
, containers
|
, containers
|
||||||
, template-haskell
|
, template-haskell
|
||||||
, path-pieces
|
, path-pieces
|
||||||
|
|||||||
@ -45,7 +45,7 @@ test-suite tests
|
|||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
cpp-options: -DTEST_EXPORT
|
cpp-options: -DTEST_EXPORT
|
||||||
build-depends: base
|
build-depends: base
|
||||||
, hspec >= 1.0 && < 1.2
|
, hspec >= 1.2 && < 1.3
|
||||||
, HUnit
|
, HUnit
|
||||||
-- copy from above
|
-- copy from above
|
||||||
, containers >= 0.2
|
, containers >= 0.2
|
||||||
|
|||||||
@ -133,10 +133,10 @@ type CookieValue = H.Ascii
|
|||||||
--
|
--
|
||||||
-- Look at the examples directory on this package to get an idea of the (small) amount of
|
-- Look at the examples directory on this package to get an idea of the (small) amount of
|
||||||
-- boilerplate code you'll need to write before calling this.
|
-- boilerplate code you'll need to write before calling this.
|
||||||
runTests :: Application -> ConnectionPool -> Specs -> IO a
|
runTests :: Application -> ConnectionPool -> Specs -> IO ()
|
||||||
runTests app connection specsDef = do
|
runTests app connection specsDef = do
|
||||||
(SpecsData _ _ specs) <- ST.execStateT specsDef (SpecsData app connection [])
|
(SpecsData _ _ specs) <- ST.execStateT specsDef (SpecsData app connection [])
|
||||||
Runner.hspecX specs
|
Runner.hspec specs
|
||||||
|
|
||||||
-- | Start describing a Tests suite keeping cookies and a reference to the tested 'Application'
|
-- | Start describing a Tests suite keeping cookies and a reference to the tested 'Application'
|
||||||
-- and 'ConnectionPool'
|
-- and 'ConnectionPool'
|
||||||
|
|||||||
@ -24,7 +24,7 @@ library
|
|||||||
, network >= 2.2 && < 2.4
|
, network >= 2.2 && < 2.4
|
||||||
, http-types >= 0.6 && < 0.7
|
, http-types >= 0.6 && < 0.7
|
||||||
, HUnit >= 1.2 && < 1.3
|
, HUnit >= 1.2 && < 1.3
|
||||||
, hspec >= 1.1 && < 1.2
|
, hspec >= 1.2 && < 1.3
|
||||||
, bytestring >= 0.9
|
, bytestring >= 0.9
|
||||||
, case-insensitive >= 0.2
|
, case-insensitive >= 0.2
|
||||||
, text
|
, text
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user