Parent

Class/Module Index [+]

Quicksearch

WebMock::HttpLibAdapters::EmHttpRequestAdapter

Public Class Methods

disable!() click to toggle source
# 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
enable!() click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.