diff --git a/lib/webmock/http_lib_adapters/httpclient_adapter.rb b/lib/webmock/http_lib_adapters/httpclient_adapter.rb index 47679952..809698ed 100644 --- a/lib/webmock/http_lib_adapters/httpclient_adapter.rb +++ b/lib/webmock/http_lib_adapters/httpclient_adapter.rb @@ -230,18 +230,18 @@ def clear_thread_variables end class WebMockHTTPClient < HTTPClient - include WebMockHTTPClients - alias_method :do_get_block_without_webmock, :do_get_block alias_method :do_get_stream_without_webmock, :do_get_stream + + include WebMockHTTPClients end if defined? ::JSONClient class WebMockJSONClient < JSONClient - include WebMockHTTPClients - alias_method :do_get_block_without_webmock, :do_get_block alias_method :do_get_stream_without_webmock, :do_get_stream + + include WebMockHTTPClients end end