Sha256: 06e971bd0713d2ce39264463d36f634b9c6a3e06eb215d9008c979ad04e74ca8
Contents?: true
Size: 817 Bytes
Versions: 7
Compression:
Stored size: 817 Bytes
Contents
require 'spec_helper' describe VCR::HttpStubbingAdapters::Typhoeus do without_monkey_patches :vcr before(:each) do ::Typhoeus::Hydra.stubs = [] ::Typhoeus::Hydra.allow_net_connect = true end it_behaves_like 'an http stubbing adapter', ['typhoeus'], [:method, :uri, :host, :path, :body, :headers] it_performs('version checking', :valid => %w[ 0.2.0 0.2.99 ], :too_low => %w[ 0.1.0 0.1.31 ], :too_high => %w[ 0.3.0 1.0.0 ] ) do disable_warnings before(:each) { @orig_version = Typhoeus::VERSION } after(:each) { Typhoeus::VERSION = @orig_version } # Cannot be regular method def as that raises a "dynamic constant assignment" error define_method :stub_version do |version| Typhoeus::VERSION = version end end end unless RUBY_PLATFORM == 'java'
Version data entries
7 entries across 7 versions & 1 rubygems