Sha256: 3a16b906e918dd1b1a0c422aadcb854a050d99cddec0dc6056155e70e90d4c72

Contents?: true

Size: 554 Bytes

Versions: 4

Compression:

Stored size: 554 Bytes

Contents

require 'spec_helper'

RSpec.describe RSolr::Client do
  describe "#connection" do
    it "accepts a timeout parameter it passes to Faraday" do
      client = described_class.new(nil, timeout: 1000)

      expect(client.connection.options[:timeout]).to eq 1000
    end
    it "accepts a deprecated read_timeout" do
      client = nil
      expect do
        client = described_class.new(nil, read_timeout: 1000)
      end.to output(/`read_timeout` is deprecated/).to_stderr

      expect(client.connection.options[:timeout]).to eq 1000
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rsolr-2.6.0/spec/lib/rsolr/client_spec.rb
rsolr-2.6.0 spec/lib/rsolr/client_spec.rb
rsolr-2.5.0 spec/lib/rsolr/client_spec.rb
rsolr-2.4.0 spec/lib/rsolr/client_spec.rb