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
21
22
23
24
25
|
# File 'lib/webmock/http_lib_adapters/manticore_adapter.rb', line 21
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
15
16
17
18
19
|
# File 'lib/webmock/http_lib_adapters/manticore_adapter.rb', line 15
def self.enable!
Manticore.send(:remove_const, :Client)
Manticore.send(:const_set, :Client, WebMockManticoreClient)
Manticore.instance_variable_set(:@manticore_facade, WebMockManticoreClient.new)
end
|