Block non-localhost requests for all tests

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.
This commit is contained in:
Tom Hughes 2018-07-10 18:59:15 +01:00
parent 90d5d062f5
commit 5ff822083d
2 changed files with 2 additions and 2 deletions

View file

@ -1,8 +1,6 @@
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

View file

@ -6,6 +6,8 @@ require_relative "../config/environment"
require "rails/test_help"
require "webmock/minitest"
WebMock.disable_net_connect!(:allow_localhost => true)
module ActiveSupport
class TestCase
include FactoryBot::Syntax::Methods