Sha256: ef5915efa21a90315b5dbef212a48b35eefea86c7334460592b1de2c1a5d0249

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

module Support
  module RequestHelper
    def stub_request(conn, adapter_class = Faraday::Adapter::Test, &stubs_block)
      adapter_handler = conn.builder.handlers.find { |h| h.klass < Faraday::Adapter }
      conn.builder.swap(adapter_handler, adapter_class, &stubs_block)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_navigator-0.0.1 spec/support/request_helper.rb