Sha256: 185fcb4e2fb908694cdf44647cb4528e92a4ba529b41b2d34423130de7972f0c

Contents?: true

Size: 555 Bytes

Versions: 52

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'

describe WebMock::HttpLibAdapterRegistry do
  describe "each_adapter" do
    it "should yield block over each adapter" do
      class MyAdapter < WebMock::HttpLibAdapter; end
      WebMock::HttpLibAdapterRegistry.instance.register(:my_lib, MyAdapter)
      adapters = []
      WebMock::HttpLibAdapterRegistry.instance.each_adapter {|n,a|
        adapters << [n, a]
      }
      adapters.should include([:my_lib, MyAdapter])
      WebMock::HttpLibAdapterRegistry.instance.
        http_lib_adapters.delete(:my_lib)
    end
  end
end

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
webmock-1.14.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.13.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.12.3 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.12.2 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.12.1 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.12.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.11.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.10.2 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.10.1 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.10.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.9.3 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.9.2 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.9.1 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
simple-client-0.0.3 vendor/bundle/ruby/1.9.1/gems/webmock-1.8.8/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.9.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.8.11 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.8.10 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.8.9 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
simple-client-0.0.2 vendor/bundle/ruby/1.8/gems/webmock-1.8.8/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-1.8.8 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb