add test cases for singular minimal

This commit is contained in:
Wolfgang Walther
2020-07-03 13:54:39 -05:00
committed by Steve Chavez
parent 43d71e95ac
commit a5bc293372
2 changed files with 20 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ spec = describe "When raw-media-types config variable is missing or left empty"
{ matchHeaders= ["Content-Type" <:> "application/json; charset=utf-8"] }
it "responds json to a GET request to RPC with Firefox Accept headers" $
request methodGet "/rpc/get_projects_below?id=3" chromeAcceptHdrs ""
request methodGet "/rpc/get_projects_below?id=3" firefoxAcceptHdrs ""
`shouldRespondWith` [json|[{"id":1,"name":"Windows 7","client_id":1}, {"id":2,"name":"Windows 10","client_id":1}]|]
{ matchHeaders= ["Content-Type" <:> "application/json; charset=utf-8"] }
it "responds json to a GET request to RPC with Chrome Accept headers" $