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-scalyr-0.1.21.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.20.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.14.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.19.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.18.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.17.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.16.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/webmock-3.13.0/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-0.57.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.13.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/webmock-2.3.2/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
vagrant-unbundled-2.2.16.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.12.2 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.12.1 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.12.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.11.3 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb