I use the Ruby language, Cucumber framework, and the HttParty gem.
I tried some ways to give expect
in response Body
to hit something that returns in it. My last attempt to hit user_id = 11111111
was:
expect(@response.body["user_id"]).to eq 11111111
That returns the error:
expected: 11111111
got: "user_id"
That is, my logic is wrong, I tried n forms where the error message was different.