Add test for a proc name = return col name, Fix #901

This commit is contained in:
steve-chavez
2017-07-07 16:32:16 -05:00
parent f0bd507ab9
commit cce3138cc1
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -667,6 +667,10 @@ spec = do
[json| "Return value of no parameters procedure." |]
{ matchHeaders = [matchContentTypeJson] }
it "returns proper output when having the same return col name as the proc name" $
post "/rpc/test" [json|{}|] `shouldRespondWith`
[json|[{"test":"hello","value":1}]|] { matchHeaders = [matchContentTypeJson] }
describe "weird requests" $ do
it "can query as normal" $ do
get "/Escap3e;" `shouldRespondWith`