myronmarston/vcr — Issue #89: VCR should inherit stub WebMock config
Author: adriancb
Created: 2011-10-10 23:34:12+00:00
State: open

Setting the WebMock allow_localhost config option has no effect on the VCR config - maybe it should inherit?

net_connect_allowed in https://github.com/bblimke/webmock/blob/master/lib/webmock/webmock.rb is overwritten by https://github.com/myronmarston/vcr/blob/master/lib/vcr/library_hooks/webmock.rb

My conf has to look like this in order to allow for localhost requests.

VCR.config do |c|
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
c.stub_with :webmock
c.ignore_localhost = true
end

WebMock.disable_net_connect!(:allow_localhost => true)