I would like to use the same uri with different request params, how can I do this? The following example seems does not work (
stub_request(:post, "http://tests/1/users/create").
with({email: 'wrong_format'}).
to_return(status: 400, body: {msg: 'Bad request'}.to_json, headers: {})
stub_request(:post, "http://tests/1/users/create").
with(email: "test@mail.com").
to_return(status: 200, body: {msg: 'Thanks for signing up for us'}.to_json, headers: {})