Sha256: f035cf1eb384bab14e4004184347b56a3587722d2ca7a24c41e57d9bacac4a66
Contents?: true
Size: 750 Bytes
Versions: 4
Compression:
Stored size: 750 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) describe AvaTax::Request do describe ".request" do it "should default to a 1200 second timeout" do @client.faraday_response = true response = @client.request(:get, 'path', 'model') expect(response.env.request['timeout']).to eq(1200) end it "should allow setting a custom timeout" do @client.faraday_response = true @client.connection_options = { request: { open_timeout: 5, timeout: 10 } } response = @client.request(:get, 'path', 'model') expect(response.env.request['open_timeout']).to eq(5) expect(response.env.request['timeout']).to eq(10) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
avatax-22.5.0 | spec/avatax/request_spec.rb |
avatax-22.3.0 | spec/avatax/request_spec.rb |
avatax-22.2.1 | spec/avatax/request_spec.rb |
avatax-22.2.0 | spec/avatax/request_spec.rb |