Sha256: 9dabe64c5cfdc97414f0fc88f1932ba4d3fecb22a3dac239b6aaa351c3120ca0

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

# frozen_string_literal: true

adapter = Isolator.isolate :webmock,
                           exception_class: Isolator::HTTPError,
                           details_message: ->(obj, _args) {
                                              "#{obj.method.to_s.upcase} #{obj.uri}"
                                            }

WebMock.after_request do |*args|
  adapter.notify(caller, *args)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
isolator-0.6.1 lib/isolator/adapters/http/webmock.rb
isolator-0.6.0 lib/isolator/adapters/http/webmock.rb