Only blocking them for the system tests didn't actually
work anyway as the setting is global so would apply to all
tests after the first system test.
require "test_helper"
require "capybara/poltergeist"
-WebMock.disable_net_connect!(:allow_localhost => true)
-
# Work around weird debian/ubuntu phantomjs
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817277
# https://github.com/ariya/phantomjs/issues/14376
require "rails/test_help"
require "webmock/minitest"
+WebMock.disable_net_connect!(:allow_localhost => true)
+
module ActiveSupport
class TestCase
include FactoryBot::Syntax::Methods