When I am trying to mock a http request with the following code snippet.
mocked_payload = { test: 'testing' }.to_json
stub_request(:get, application_url)
.with(body: platform.user_credentials)
.to_return(status: 200, body: mocked_payload)
I receive this.
Does anyone know how this can be solved? I reduced the mocked_payload to figure out if something is wrong with that.