Sha256: a1b88e6c856118b31e9a1fa085838a93518427fe9c3bda3a6db2290d0c4c1c61

Contents?: true

Size: 289 Bytes

Versions: 11

Compression:

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

class ActiveSupport::TestCase
  setup do
    WebMock.requests.clear
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
minitest-utils-0.2.6 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.2.5 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.2.4 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.2.3 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.2.1 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.2.0 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.1.4 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.1.3 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.1.2 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.1.1 lib/minitest/utils/rails/webmock.rb
minitest-utils-0.1.0 lib/minitest/utils/rails/webmock.rb