@@ -80,7 +80,7 @@ spec = do
8080authSpec :: Spec
8181authSpec
8282 = describe " The Auth combinator"
83- $ around (testWithApplication . return $ app jwtAndCookieApi) $ do
83+ $ aroundAll (testWithApplication . return $ app jwtAndCookieApi) $ do
8484
8585 it " returns a 401 if all authentications are Indefinite" $ \ port -> do
8686 get (url port) `shouldHTTPErrorWith` status401
@@ -172,7 +172,7 @@ cookieAuthSpec :: Spec
172172cookieAuthSpec
173173 = describe " The Auth combinator" $ do
174174 describe " With XSRF check" $
175- around (testWithApplication . return $ app cookieOnlyApi) $ do
175+ aroundAll (testWithApplication . return $ app cookieOnlyApi) $ do
176176
177177 it " fails if XSRF header and cookie don't match" $ \ port -> property
178178 $ \ (user :: User ) -> do
@@ -243,7 +243,7 @@ cookieAuthSpec
243243 describe " With no XSRF check for GET requests" $ let
244244 noXsrfGet xsrfCfg = xsrfCfg { xsrfExcludeGet = True }
245245 cookieCfgNoXsrfGet = cookieCfg { cookieXsrfSetting = fmap noXsrfGet $ cookieXsrfSetting cookieCfg }
246- in around (testWithApplication . return $ appWithCookie cookieOnlyApi cookieCfgNoXsrfGet) $ do
246+ in aroundAll (testWithApplication . return $ appWithCookie cookieOnlyApi cookieCfgNoXsrfGet) $ do
247247
248248 it " succeeds with no XSRF header or cookie for GET" $ \ port -> property
249249 $ \ (user :: User ) -> do
@@ -260,7 +260,7 @@ cookieAuthSpec
260260
261261 describe " With no XSRF check at all" $ let
262262 cookieCfgNoXsrf = cookieCfg { cookieXsrfSetting = Nothing }
263- in around (testWithApplication . return $ appWithCookie cookieOnlyApi cookieCfgNoXsrf) $ do
263+ in aroundAll (testWithApplication . return $ appWithCookie cookieOnlyApi cookieCfgNoXsrf) $ do
264264
265265 it " succeeds with no XSRF header or cookie for GET" $ \ port -> property
266266 $ \ (user :: User ) -> do
@@ -313,7 +313,7 @@ cookieAuthSpec
313313jwtAuthSpec :: Spec
314314jwtAuthSpec
315315 = describe " The JWT combinator"
316- $ around (testWithApplication . return $ app jwtOnlyApi) $ do
316+ $ aroundAll (testWithApplication . return $ app jwtOnlyApi) $ do
317317
318318 it " fails if 'aud' does not match predicate" $ \ port -> property $
319319 \ (user :: User ) -> do
@@ -378,7 +378,7 @@ jwtAuthSpec
378378
379379basicAuthSpec :: Spec
380380basicAuthSpec = describe " The BasicAuth combinator"
381- $ around (testWithApplication . return $ app basicAuthApi) $ do
381+ $ aroundAll (testWithApplication . return $ app basicAuthApi) $ do
382382
383383 it " succeeds with the correct password and username" $ \ port -> do
384384 resp <- getWith (defaults & auth ?~ basicAuth " ali" " Open sesame" ) (url port)
0 commit comments