From 4dd7dd7c718cfc830eb16a2c30c96402cac246f9 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Wed, 29 Jul 2015 02:01:20 +0200 Subject: [PATCH] whitelist codeclimate.com in webmock so test coverage can be reported --- spec/spec_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ceb42ca..68985bc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -56,6 +56,11 @@ RSpec.configure do |config| config.fixture_path = "#{::Rails.root}/test/fixtures" config.global_fixtures = :all + # whitelist codeclimate.com so test coverage can be reported + config.after(:suite) do + WebMock.disable_net_connect!(allow: "codeclimate.com") + end + config.mock_with :rspec do |mocks| # Prevents you from mocking or stubbing a method that does not exist on # a real object. This is generally recommended, and will default to