Sha256: 50886931c5fc65a94eb3925473d587efd1d4ec983f1b23207c027b9055366069
Contents?: true
Size: 301 Bytes
Versions: 3
Compression:
Stored size: 301 Bytes
Contents
require "webmock/minitest" WebMock.disable_net_connect!(allow: %w[codeclimate.com]) def WebMock.requests @requests ||= [] end WebMock.after_request do |request, _response| WebMock.requests << request end module Minitest class Test setup do WebMock.requests.clear end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
minitest-utils-0.4.0 | lib/minitest/utils/setup/webmock.rb |
minitest-utils-0.3.1 | lib/minitest/utils/setup/webmock.rb |
minitest-utils-0.3.0 | lib/minitest/utils/setup/webmock.rb |