This commit is contained in:
Ruslan Talpa
2016-06-17 10:45:25 -07:00
committed by Joe Nelson
parent e8426671c0
commit b916ed907b
4 changed files with 23 additions and 13 deletions
+9
View File
@@ -35,3 +35,12 @@ spec =
, matchStatus = 206
, matchHeaders = ["Content-Range" <:> "0-1/3"]
}
it "limit is not applied to parent embeds" $
get "/tasks?select=id,project{id}&id=gt.5"
`shouldRespondWith` ResponseMatcher {
matchBody = Just [str|[{"id":6,"project":{"id":3}},{"id":7,"project":{"id":4}}]|]
, matchStatus = 206
, matchHeaders = ["Content-Range" <:> "0-1/3"]
}