Sha256: 289ce0b6c01244511187b7cf374a11bbd678f753f097cb57b56bad40c14dfb6b

Contents?: true

Size: 559 Bytes

Versions: 195

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

195 entries across 184 versions & 13 rubygems

Version Path
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/webmock-3.18.1/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.1 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-2.0.0 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
cloudsmith-api-1.142.3 vendor/bundle/ruby/2.6.0/gems/webmock-1.24.6/spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.18.1 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb
webmock-3.18.0 spec/unit/http_lib_adapters/http_lib_adapter_registry_spec.rb