Add RuboCop check for WebMock.disable_net_connect!
What does this MR do?
Add RuboCop check for WebMock.disable_net_connect!
and replace with enable_webmock!
.
Calling WebMock.disable_net_connect!
directly may inadvertently remove the allowed_hosts
that have been set in spec/support/webmock.rb
. This is to prevent reoccurrence of failures such as #296933 (closed).
Edited by Albert Salim