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
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/faraday-1.2.0/spec/faraday/adapter/patron_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/faraday-1.4.2/spec/faraday/adapter/patron_spec.rb
faraday-1.4.2 spec/faraday/adapter/patron_spec.rb
cocRb-0.1.0 .bundle/ruby/3.0.0/gems/faraday-1.4.1/spec/faraday/adapter/patron_spec.rb
faraday-1.4.1 spec/faraday/adapter/patron_spec.rb
faraday-1.4.0 spec/faraday/adapter/patron_spec.rb
faraday-1.3.1 spec/faraday/adapter/patron_spec.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/faraday-1.3.0/spec/faraday/adapter/patron_spec.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/faraday-1.2.0/spec/faraday/adapter/patron_spec.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/faraday-1.3.0/spec/faraday/adapter/patron_spec.rb
faraday-1.3.0 spec/faraday/adapter/patron_spec.rb
faraday-1.2.0 spec/faraday/adapter/patron_spec.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb
passbase-1.2.0 vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb
passbase-1.1.0 vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb
passbase-1.0.3 vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/faraday/adapter/patron_spec.rb