resetDb once for each set of tests.

This commit is contained in:
Adam C. Baker
2014-12-29 17:57:31 -08:00
parent 796de39762
commit 2ae99daa12
6 changed files with 28 additions and 13 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import Test.Hspec.Wai
import SpecHelper
spec :: Spec
spec = before resetDb $ around withApp $ do
spec = beforeAll resetDb $ around withApp $ do
describe "Querying a nonexistent table" $
it "causes a 404" $
get "/faketable" `shouldRespondWith` 404