Sha256: 9f23a90decf6ea67104009b2c9d0fece7fd349aaeb62738573262c489b80bb4a
Contents?: true
Size: 690 Bytes
Versions: 8
Compression:
Stored size: 690 Bytes
Contents
require 'spec_helper' describe VCR::HttpStubbingAdapters::FakeWeb, :without_webmock_callbacks => true do it_behaves_like 'an http stubbing adapter', ['net/http'], [:method, :uri, :host, :path], :needs_net_http_extension it_performs('version checking', :valid => %w[ 1.3.0 1.3.1 1.3.99 ], :too_low => %w[ 1.2.8 1.1.30 0.30.30 ], :too_high => %w[ 1.4.0 1.10.0 2.0.0 ] ) do before(:each) { @orig_version = FakeWeb::VERSION } after(:each) { FakeWeb::VERSION = @orig_version } # Cannot be regular method def as that raises a "dynamic constant assignment" error define_method :stub_version do |version| FakeWeb::VERSION = version end end end
Version data entries
8 entries across 8 versions & 1 rubygems