Do not do table count when plurality=singular

Rebasing commits by @ruslantalpa
This commit is contained in:
Joe Nelson
2016-03-23 20:30:51 -07:00
parent 01355f39a1
commit cd81e9346f
3 changed files with 15 additions and 2 deletions
+8
View File
@@ -246,6 +246,14 @@ spec = do
, matchHeaders = []
}
it "can combine multiple prefer values" $
request methodGet "/items?id=eq.5" [("Prefer","plurality=singular ; future=new; count=none")] ""
`shouldRespondWith` ResponseMatcher {
matchBody = Just [json| {"id":5} |]
, matchStatus = 200
, matchHeaders = []
}
it "works in the presence of a range header" $
let headers = ("Prefer","plurality=singular") :
rangeHdrs (ByteRangeFromTo 0 9) in