whitelist codeclimate.com in webmock so test coverage can be reported
This commit is contained in:
parent
cd57517b4c
commit
4dd7dd7c71
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue