Sha256: c2d83161ca6aa781536c6eaf281664ba53ebb78a06439c0fd32b372193a4c99e

Contents?: true

Size: 538 Bytes

Versions: 8

Compression:

Stored size: 538 Bytes

Contents

require 'spec_helper'

describe VCR::HttpStubbingAdapters::WebMock, :without_monkey_patches => :vcr 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.6.0 1.6.99 ],
    :too_low  => %w[ 0.9.9 0.9.10 0.1.30 1.0.30 1.2.9 1.3.9 ],
    :too_high => %w[ 1.7.0 1.10.0 2.0.0 ]
  ) do
    def stub_version(version)
      WebMock.stub(:version).and_return(version)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vcr-1.10.3 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.10.2 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.10.0 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.9.0 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.8.0 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.7.2 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.7.1 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.7.0 spec/vcr/http_stubbing_adapters/webmock_spec.rb