Class: WebMock::HttpLibAdapters::ManticoreAdapter
Defined Under Namespace
Classes: StubbedTimeoutResponse, WebMockManticoreClient
Constant Summary
collapse
- OriginalManticoreClient =
Manticore::Client
Class Method Summary
collapse
adapter_for
Class Method Details
.disable! ⇒ Object
23
24
25
26
27
|
# File 'lib/webmock/http_lib_adapters/manticore_adapter.rb', line 23
def self.disable!
Manticore.send(:remove_const, :Client)
Manticore.send(:const_set, :Client, OriginalManticoreClient)
Manticore.instance_variable_set(:@manticore_facade, OriginalManticoreClient.new)
end
|
.enable! ⇒ Object
17
18
19
20
21
|
# File 'lib/webmock/http_lib_adapters/manticore_adapter.rb', line 17
def self.enable!
Manticore.send(:remove_const, :Client)
Manticore.send(:const_set, :Client, WebMockManticoreClient)
Manticore.instance_variable_set(:@manticore_facade, WebMockManticoreClient.new)
end
|