From be4753ab1681323f205aa5d0e43ee003bc94f597 Mon Sep 17 00:00:00 2001 From: Kenji Okimoto Date: Fri, 27 Jul 2018 16:12:29 +0900 Subject: [PATCH] Add WebMock Signed-off-by: Kenji Okimoto --- test/test_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index ab6b45b..df3180a 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,6 +2,9 @@ ENV['RAILS_ENV'] ||= 'test' require_relative '../config/environment' require 'test/unit/rails/test_help' require 'test/unit/rr' +require 'webmock/test_unit' + +WebMock.disable_net_connect!(allow_localhost: true) class ActiveSupport::TestCase # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.