Sha256: d426a01bda080f04fa7a6d1346cd661ad5da6bbcd5bc038d2f573c11afa73ef4

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

require 'spec_helper'

describe VCR::HttpStubbingAdapters::WebMock, :with_monkey_patches => :webmock do
  it_behaves_like 'an http stubbing adapter',
    %w[net/http patron httpclient em-http-request curb],
    [:method, :uri, :host, :path, :body, :headers]

  it_performs('version checking',
    :valid    => %w[ 1.7.0 1.7.99 ],
    :too_low  => %w[ 0.9.9 0.9.10 0.1.30 1.0.30 1.6.9 ],
    :too_high => %w[ 1.8.0 1.10.0 2.0.0 ]
  ) do
    def stub_version(version)
      WebMock.stub(:version).and_return(version)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vcr-1.11.3 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.11.2 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.11.1 spec/vcr/http_stubbing_adapters/webmock_spec.rb