Sha256: 289ce0b6c01244511187b7cf374a11bbd678f753f097cb57b56bad40c14dfb6b

Contents?: true

Size: 559 Bytes

Versions: 196

Compression:

Stored size: 559 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]
      }
      expect(adapters).to include([:my_lib, MyAdapter])
      WebMock::HttpLibAdapterRegistry.instance.
        http_lib_adapters.delete(:my_lib)
    end
  end
end

Version data entries

196 entries across 185 versions & 13 rubygems

Version Path
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/webmock-3.11.2/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.11.2 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.11.1 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/webmock-2.3.2/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.11.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.54.15 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.10.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.9.5 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.9.4 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.53.79 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.9.3 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.9.2 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.53.17 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.53.3 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/webmock-2.3.2/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.53.1 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.9.1 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.9.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.52.121 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.52.92 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb