Sha256: e9098cf0d0d24bbe3970ed293ab13857e39d304e8342f24c2f70d810df9cf91c
Contents?: true
Size: 338 Bytes
Versions: 2
Compression:
Stored size: 338 Bytes
Contents
require 'webmock/rspec' 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mrkt-0.6.0 | spec/support/webmock.rb |
mrkt-0.5.0 | spec/support/webmock.rb |