webmock icon indicating copy to clipboard operation
webmock copied to clipboard

Not support symbol status code

Open 4geru opened this issue 6 years ago • 2 comments

I expect to use rails status code. send :ok when expected 200 but return 0.

Is webmock going to adapt rails status code?

stub_request(:get, url).to_return(status: 200, body: 'response')

status code: https://gist.github.com/mlanett/a31c340b132ddefa9cca

4geru avatar Jan 08 '19 03:01 4geru

@4geru do you mean allowing for stub_request(:get, url).to_return(status: :ok, body: 'response') ? Would it make much difference?

bblimke avatar Jan 09 '19 23:01 bblimke