whitelist codeclimate.com in webmock so test coverage can be reported

This commit is contained in:
Benjamin Neff 2015-07-29 02:01:20 +02:00
parent cd57517b4c
commit 4dd7dd7c71

View file

@ -56,6 +56,11 @@ RSpec.configure do |config|
config.fixture_path = "#{::Rails.root}/test/fixtures" config.fixture_path = "#{::Rails.root}/test/fixtures"
config.global_fixtures = :all 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| config.mock_with :rspec do |mocks|
# Prevents you from mocking or stubbing a method that does not exist on # Prevents you from mocking or stubbing a method that does not exist on
# a real object. This is generally recommended, and will default to # a real object. This is generally recommended, and will default to