Be sure to reset db before ALL tests

This commit is contained in:
Joe Nelson
2014-12-06 17:42:42 -08:00
parent a45718e992
commit 7d58097449
9 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import Test.Hspec.Wai
import SpecHelper
spec :: Spec
spec = around withApp $ do
spec = before resetDb $ around withApp $ do
describe "Querying a nonexistent table" $
it "causes a 404" $
get "/faketable" `shouldRespondWith` 404