Sha256: 72a1cbf8defebb57812f97a14adf71f38bd872a65a8fd0697651ae2108008d30

Contents?: true

Size: 536 Bytes

Versions: 7

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'

describe VCR::HttpStubbingAdapters::WebMock do
  without_monkey_patches :vcr

  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

7 entries across 7 versions & 1 rubygems

Version Path
vcr-1.6.0 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.5.1 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.5.0 spec/vcr/http_stubbing_adapters/webmock_spec.rb
vcr-1.4.0 spec/http_stubbing_adapters/webmock_spec.rb
vcr-1.3.3 spec/http_stubbing_adapters/webmock_spec.rb
vcr-1.3.2 spec/http_stubbing_adapters/webmock_spec.rb
vcr-1.3.1 spec/http_stubbing_adapters/webmock_spec.rb