resetDb once for each set of tests.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user