Module: VCR::Deprecations::Middleware::Faraday

Included in:
Middleware::Faraday
Defined in:
lib/vcr/deprecations.rb

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



37
38
39
40
41
42
# File 'lib/vcr/deprecations.rb', line 37

def initialize(*args)
  if block_given?
    Kernel.warn "WARNING: Passing a block to `VCR::Middleware::Faraday` is deprecated. \n" +
                "As of VCR 2.0, you need to wrap faraday requests in VCR.use_cassette, just like with any other library hook."
  end
end