File: http_lib_adapter_spec.rb

package info (click to toggle)
ruby-webmock 3.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,172 kB
  • sloc: ruby: 12,829; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 356 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
require 'spec_helper'

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