spec/support/webmock.rb in mrkt-0.11.0 vs spec/support/webmock.rb in mrkt-0.11.1
- old
+ new
@@ -1,16 +1,10 @@
require 'webmock/rspec'
-RSpec.configure do |config|
+RSpec.configure do
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