Reset db between each test suite

This commit is contained in:
Joe Nelson
2016-02-22 17:50:00 -08:00
parent 17acd134c7
commit b0974a4e36
+1 -1
View File
@@ -29,7 +29,7 @@ main = do
let dbStructure = either (error.show) id result
withApp = return $ postgrest testCfg dbStructure pool
hspec . sequence_ . map (before withApp) $ specs
hspec . mapM_ (beforeAll_ resetDb . before withApp) $ specs
where
specs = map (uncurry describe) [