Fix count=none when we have filters

This commit is contained in:
Diogo Biazus
2015-09-30 16:50:52 -04:00
parent 29ae1bdefd
commit f0ec46fd11
2 changed files with 11 additions and 4 deletions
+9
View File
@@ -37,6 +37,15 @@ spec = beforeAll (clearTable "items" >> createItems 15) . afterAll_ (clearTable
, matchHeaders = ["Content-Range" <:> "0-14/*"]
}
it "returns range Content-Range with range/* even using other filters" $
request methodGet "/items?id=eq.1&order=id"
[("Prefer", "count=none")] ""
`shouldRespondWith` ResponseMatcher {
matchBody = Just [json| [{"id":1}] |]
, matchStatus = 200
, matchHeaders = ["Content-Range" <:> "0-0/*"]
}
context "with range headers" $ do
context "of acceptable range" $ do