HttpLibAdapter
# File lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb, line 18 def self.disable! EventMachine.send(:remove_const, :HttpConnection) EventMachine.send(:const_set, :HttpConnection, OriginalHttpConnection) EventMachine.send(:remove_const, :HttpClient) EventMachine.send(:const_set, :HttpClient, OriginalHttpClient) end
# File lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb, line 11 def self.enable! EventMachine.send(:remove_const, :HttpConnection) EventMachine.send(:const_set, :HttpConnection, EventMachine::WebMockHttpConnection) EventMachine.send(:remove_const, :HttpClient) EventMachine.send(:const_set, :HttpClient, EventMachine::WebMockHttpClient) end
Generated with the Darkfish Rdoc Generator 2.