Sha256: 4f76b26a585d2225901bbb70575c5b081b519b81a8f4f4474164c70d72657884

Contents?: true

Size: 352 Bytes

Versions: 52

Compression:

Stored size: 352 Bytes

Contents

require 'spec_helper'

describe WebMock::HttpLibAdapter do
  describe "adapter_for" do
    it "should add adapter to adapter registry" do
      class MyAdapter < WebMock::HttpLibAdapter; end
      WebMock::HttpLibAdapterRegistry.instance.
        should_receive(:register).with(:my_lib, MyAdapter)
      MyAdapter.adapter_for(:my_lib)
    end
  end
end

Version data entries

52 entries across 52 versions & 4 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/webmock-1.8.11/spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/webmock-1.8.11/spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/webmock-1.8.11/spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.20.3 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.20.2 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.20.1 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.20.0 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.19.0 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
whos_dated_who-0.1.0 vendor/bundle/gems/webmock-1.18.0/spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
whos_dated_who-0.0.1 vendor/bundle/gems/webmock-1.18.0/spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.18.0 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.17.4 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.17.3 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.17.2 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.17.1 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.17.0 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.16.1 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.16.0 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.15.2 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb
webmock-1.15.0 spec/unit/http_lib_adapters/http_lib_adapter_spec.rb