parroty / exvcr

HTTP request/response recording library for elixir, inspired by VCR.
MIT License
722 stars 132 forks source link

Stubbing POST? #89

Closed drapergeek closed 7 years ago

drapergeek commented 7 years ago

I've been using the use_cassette :stub, [status_code: 500] option for a while and it works great for GET requests. When I moved to using a POST however, the stub doesn't seem to be catching anything.

Things I've tried:

I'm using the Hackney adapter and the request is going through HTTPoison. Any ideas would be really helpful. Thanks!

drapergeek commented 7 years ago

Looks like this is directly related to #61

parroty commented 7 years ago

Thanks for the comment. This item was being sunk for a while, and will try to revisit.

parroty commented 7 years ago

The above is a trial to ignore request_body when it's not used. Does the test condition matches your expectation?

drapergeek commented 7 years ago

That's exactly what I need! Thanks!

parroty commented 7 years ago

Thanks for the reply. I've pushed to the hex.