embed entities to the results returned by procs

This commit is contained in:
Ruslan Talpa
2016-06-28 12:09:58 +03:00
parent 2f166088c8
commit 430baf23b9
4 changed files with 25 additions and 18 deletions
+1 -1
View File
@@ -484,7 +484,7 @@ spec = do
it "can embed foreign entities to the items returned by a proc" $
post "/rpc/getproject?select=id,name,client{id},tasks{id}" [json| { "id": 1} |] `shouldRespondWith`
[json|[{"id":1,"name":"Windows 7","client":{"id":2},"tasks":[{"id":1}]}]|]
[json|[{"id":1,"name":"Windows 7","client":{"id":1},"tasks":[{"id":1},{"id":2}]}]|]
context "a proc that returns an empty rowset" $
it "returns empty json array" $