dimanche 8 décembre 2019

How to stub any post call in rest client in minitest rails

I am trying to find a way to stub any post call from restclient but I didn't found any solution to this. What I tried is

RestClient.stub(:post).returns(response)

But I getting error like wrong number of arguments.

Can anyone help

Aucun commentaire:

Enregistrer un commentaire