Sha256: 102bc5bf404df44a269f0b6646fedb8563b8e1c67ec9e6fc811c0c5ec64c2ba5

Contents?: true

Size: 687 Bytes

Versions: 2

Compression:

Stored size: 687 Bytes

Contents

require 'spec_helper'

describe VCR::HttpStubbingAdapters::Excon, :without_monkey_patches => :vcr do
  it_behaves_like 'an http stubbing adapter',
    ['excon'],
    [:method, :uri, :host, :path, :body, :headers],
    :status_message_not_exposed

  it_performs('version checking',
    :valid    => %w[ 0.6.2 0.6.99 ],
    :too_low  => %w[ 0.5.99 0.6.1 ],
    :too_high => %w[ 0.7.0 1.0.0 ]
  ) do
    before(:each) { @orig_version = Excon::VERSION }
    after(:each)  { Excon::VERSION = @orig_version }

    # Cannot be regular method def as that raises a "dynamic constant assignment" error
    define_method :stub_version do |version|
      Excon::VERSION = version
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vcr-1.10.0 spec/vcr/http_stubbing_adapters/excon_spec.rb
vcr-1.9.0 spec/vcr/http_stubbing_adapters/excon_spec.rb