Sha256: 8701eb26d7c0121a5ebffe600eac549cb52514448fe22136fcb1a8544bd01bbf

Contents?: true

Size: 337 Bytes

Versions: 7

Compression:

Stored size: 337 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

7 entries across 7 versions & 1 rubygems

Version Path
mrkt-0.11.0 spec/support/webmock.rb
mrkt-0.10.0 spec/support/webmock.rb
mrkt-0.9.0 spec/support/webmock.rb
mrkt-0.8.0 spec/support/webmock.rb
mrkt-0.7.0 spec/support/webmock.rb
mrkt-0.6.2 spec/support/webmock.rb
mrkt-0.6.1 spec/support/webmock.rb