Skip to content

Add RuboCop check for WebMock.disable_net_connect!

Albert Salim requested to merge caalberts-rubocop-webmock-enable into master

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

Merge request reports