# File lib/vcr.rb, line 94 def http_stubbing_adapter @http_stubbing_adapter ||= begin if [:fakeweb, :webmock].all? { |l| VCR::Config.http_stubbing_libraries.include?(l) } raise ArgumentError.new("You have configured VCR to use both :fakeweb and :webmock. You cannot use both.") end adapters = VCR::Config.http_stubbing_libraries.map { |l| adapter_for(l) } raise ArgumentError.new("The http stubbing library is not configured.") if adapters.empty? HttpStubbingAdapters::MultiObjectProxy.for(*adapters) end end