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