Class: WebMock::HttpLibAdapters::ManticoreAdapter
- Inherits:
-
WebMock::HttpLibAdapter
- Object
- WebMock::HttpLibAdapter
- WebMock::HttpLibAdapters::ManticoreAdapter
- Defined in:
- lib/webmock/http_lib_adapters/manticore_adapter.rb
Defined Under Namespace
Classes: StubbedTimeoutResponse, WebMockManticoreClient
Constant Summary collapse
- OriginalManticoreClient =
Manticore::Client
Class Method Summary collapse
Methods inherited from WebMock::HttpLibAdapter
Class Method Details
permalink .disable! ⇒ Object
[View source] [View on GitHub]
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 |
permalink .enable! ⇒ Object
[View source] [View on GitHub]
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 |