@@ -12,7 +12,7 @@ import Servant.API.Internal.Test.ComprehensiveAPI
13import Servant.QuickCheck
13import Servant.QuickCheck
15−import Servant.QuickCheck.Internal (genRequest)
15+import Servant.QuickCheck.Internal (genRequest, serverDoesntSatisfy)
17spec :: Spec
17spec :: Spec
@@ -40,10 +40,11 @@ serverSatisfiesSpec = describe "serverSatisfies" $ do
41 it "fails for false predicates" $ do
41 it "fails for false predicates" $ do
42 withServantServerAndContext api ctx server $ \burl -> do
42 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)
43+ serverDoesntSatisfy api burl args (onlyJsonObjects
46− serverSatisfies api burl args ((not <$> getsHaveCacheControlHeader) <%> mempty)
44+ <%> getsHaveCacheControlHeader
45+ <%> headsHaveCacheControlHeader
46+ <%> notAllowedContainsAllowHeader
48isComprehensiveSpec :: Spec
49isComprehensiveSpec :: Spec
49isComprehensiveSpec = describe "HasGenRequest" $ do
50isComprehensiveSpec = describe "HasGenRequest" $ do