mirror of
https://github.com/codedownio/sandwich.git
synced 2024-09-11 11:56:32 +03:00
More on demo-setup-teardown
This commit is contained in:
parent
5b24042cfb
commit
e05e7b9adc
@ -27,7 +27,10 @@ introduceDatabase = introduceWith "introduceWith database" database $ \action ->
|
||||
|
||||
basic :: TopSpec
|
||||
basic = describe "Simple tests" $ do
|
||||
before "Pauses" (p 3) $ do
|
||||
before "Pauses before" (p 3) $ do
|
||||
it "adds" $ (2 + 2) `shouldBe` 4
|
||||
|
||||
after "Pauses after" (p 3) $ do
|
||||
it "adds" $ (2 + 2) `shouldBe` 4
|
||||
|
||||
introduceDatabase $ do
|
||||
|
@ -10,7 +10,7 @@ license: BSD3
|
||||
license-file: LICENSE
|
||||
build-type: Simple
|
||||
|
||||
executable demo-basic
|
||||
executable demo-setup-teardown
|
||||
main-is: Main.hs
|
||||
other-modules:
|
||||
Paths_demo_setup_teardown
|
||||
|
@ -25,6 +25,6 @@ ghc-options:
|
||||
- -with-rtsopts=-N
|
||||
|
||||
executables:
|
||||
demo-basic:
|
||||
demo-setup-teardown:
|
||||
main: Main.hs
|
||||
source-dirs: app
|
||||
|
Loading…
Reference in New Issue
Block a user