Sha256: 0bc3072b27589083f0e35540f396cb9a85764f867f8e097ca090b2deb37d0e2c
Contents?: true
Size: 743 Bytes
Versions: 2
Compression:
Stored size: 743 Bytes
Contents
# frozen_string_literal: true RSpec.describe RatingChgkV2::Connection do let(:dummy) { Class.new { include RatingChgkV2::Connection }.new } before { RatingChgkV2.reset_client! } after { RatingChgkV2.reset_client! } it 'allows to customize timeouts' do custom_client = RatingChgkV2.client(params: {open_timeout: 100, timeout: 500}) conn = dummy.connection custom_client expect(conn.options.timeout).to eq(500) expect(conn.options.open_timeout).to eq(100) custom_client.timeout = 300 custom_client.open_timeout = 200 another_conn = dummy.connection custom_client expect(another_conn.options.timeout).to eq(300) expect(another_conn.options.open_timeout).to eq(200) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rating-chgk-v2-1.0.0 | spec/lib/rating_chgk_v2/connection_spec.rb |
rating-chgk-v2-1.0.0.rc1 | spec/lib/rating_chgk_v2/connection_spec.rb |