spec/support/webmock.rb in mrkt-0.4.0 vs spec/support/webmock.rb in mrkt-0.5.0

- old
+ new

@@ -1,10 +1,16 @@ require 'webmock/rspec' -RSpec.configure do +RSpec.configure do |config| def json_stub(content_stub) { headers: { content_type: 'application/json' }, body: JSON.generate(content_stub) } + end + + if ENV['CODECLIMATE_REPO_TOKEN'] + config.after(:suite) do + WebMock.disable_net_connect!(allow: 'codeclimate.com') + end end end