Reset db between tests rather than using transactions to accomodate Hasql limitation

This commit is contained in:
Joe Nelson
2014-12-06 17:42:21 -08:00
parent 4eb4d8da1e
commit 5900475460
5 changed files with 25 additions and 33 deletions
+1 -4
View File
@@ -1,7 +1,6 @@
{-# LANGUAGE QuasiQuotes #-}
module Feature.InsertSpec where
-- {{{ Imports
import Test.Hspec
import Test.Hspec.Wai
import Test.Hspec.Wai.JSON
@@ -17,10 +16,8 @@ import Control.Monad (replicateM_)
import TestTypes(IncPK(..), CompoundPK(..))
-- }}}
spec :: Spec
spec = around withApp $ do
spec = before resetDb $ around withApp $ do
describe "Posting new record" $ do
it "accepts disparate json types" $
post "/menagerie"