Sha256: fe4efefab6fcd62fb171165559896b24aa309fbea44202cbe7790d9036cb5e6c

Contents?: true

Size: 487 Bytes

Versions: 77

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Faraday::Adapter::Patron, unless: defined?(JRUBY_VERSION) do
  features :reason_phrase_parse

  it_behaves_like 'an adapter'

  it 'allows to provide adapter specific configs' do
    conn = Faraday.new do |f|
      f.adapter :patron do |session|
        session.max_redirects = 10
        raise 'Configuration block called'
      end
    end

    expect { conn.get('/') }.to raise_error(RuntimeError, 'Configuration block called')
  end
end

Version data entries

77 entries across 64 versions & 15 rubygems

Version Path
faraday-1.10.4 spec/faraday/adapter/patron_spec.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/faraday-1.2.0/spec/faraday/adapter/patron_spec.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/faraday-1.10.3/spec/faraday/adapter/patron_spec.rb
faraday-1.10.3 spec/faraday/adapter/patron_spec.rb
faraday-1.10.2 spec/faraday/adapter/patron_spec.rb
faraday-1.10.1 spec/faraday/adapter/patron_spec.rb
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/faraday-1.0.1/spec/faraday/adapter/patron_spec.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/faraday-1.10.0/spec/faraday/adapter/patron_spec.rb
plaid-14.13.0 vendor/bundle/ruby/3.0.0/gems/faraday-1.10.0/spec/faraday/adapter/patron_spec.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/faraday-1.10.0/spec/faraday/adapter/patron_spec.rb
faraday-1.10.0 spec/faraday/adapter/patron_spec.rb
plaid-14.12.1 vendor/bundle/ruby/3.0.0/gems/faraday-1.9.3/spec/faraday/adapter/patron_spec.rb
plaid-14.12.0 vendor/bundle/ruby/2.6.0/gems/faraday-1.8.0/spec/faraday/adapter/patron_spec.rb
plaid-14.12.0 vendor/bundle/ruby/2.6.0/gems/faraday-1.9.3/spec/faraday/adapter/patron_spec.rb
plaid-14.11.1 vendor/bundle/ruby/2.6.0/gems/faraday-1.9.3/spec/faraday/adapter/patron_spec.rb
faraday-1.9.3 spec/faraday/adapter/patron_spec.rb
faraday-1.9.2 spec/faraday/adapter/patron_spec.rb
faraday-1.9.1 spec/faraday/adapter/patron_spec.rb
faraday-1.9.0 spec/faraday/adapter/patron_spec.rb
plaid-14.10.0 vendor/bundle/ruby/2.6.0/gems/faraday-1.8.0/spec/faraday/adapter/patron_spec.rb