I'm using webmock and VCR for some of my basic Rspec tests, but I want to disable webmock for my acceptance tests so that I can actually make external HTTP requests.
What's the best way to do this?
you can just do
before do
VCR.turn_off!
WebMock.allow_net_connect!
end
after do
VCR.turn_on!
WebMock.disable_net_connect!
end
From the README:
WebMock.allow_net_connect!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With