Sha256: 2fa93b9c077dcccb473046d4c5665bb22d9a6686520d8328898ec0125b277fae
Contents?: true
Size: 399 Bytes
Versions: 6
Compression:
Stored size: 399 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../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
6 entries across 6 versions & 1 rubygems