It would be better not to globally enable web connect, rather to only allow localhost here.  See https://github.com/alphagov/travel-advice-publisher/blob/master/spec/support/webmock.rb for an example.