@@ -12,7 +12,7 @@ import Servant.API.Internal.Test.ComprehensiveAPI
1212
1313import Servant.QuickCheck
1414
15−import Servant.QuickCheck.Internal (genRequest)
15+import Servant.QuickCheck.Internal (genRequest, serverDoesntSatisfy)
1616
1717spec :: Spec
1818spec = do
@@ -40,10 +40,11 @@ serverSatisfiesSpec = describe "serverSatisfies" $ do
4040
4141 it "fails for false predicates" $ do
4242 withServantServerAndContext api ctx server $ \burl -> do
43− -- Since this is the negation, and we want to check that all of the
44− -- predicates fail rather than one or more, we need to separate them out
45− serverSatisfies api burl args ((not <$> onlyJsonObjects) <%> mempty)
46− serverSatisfies api burl args ((not <$> getsHaveCacheControlHeader) <%> mempty)
43+ serverDoesntSatisfy api burl args (onlyJsonObjects
44+ <%> getsHaveCacheControlHeader
45+ <%> headsHaveCacheControlHeader
46+ <%> notAllowedContainsAllowHeader
47+ <%> mempty)
4748
4849isComprehensiveSpec :: Spec
4950isComprehensiveSpec = describe "HasGenRequest" $ do