summaryrefslogtreecommitdiff
path: root/lib/gitlab/net_http_adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/net_http_adapter.rb')
-rw-r--r--lib/gitlab/net_http_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/net_http_adapter.rb b/lib/gitlab/net_http_adapter.rb
index 2f7557f2bc3..17eb07fff2b 100644
--- a/lib/gitlab/net_http_adapter.rb
+++ b/lib/gitlab/net_http_adapter.rb
@@ -6,7 +6,7 @@ module Gitlab
# Net::HTTP#request usually calls Net::HTTP#connect but the Webmock overwrite doesn't.
# This makes sure that, in a test environment, the superclass is the Webmock overwrite.
parent_class = if defined?(WebMock) && Rails.env.test?
- WebMock::HttpLibAdapters::NetHttpAdapter.instance_variable_get('@webMockNetHTTP')
+ WebMock::HttpLibAdapters::NetHttpAdapter.instance_variable_get(:@webMockNetHTTP)
else
Net::HTTP
end