Sha256: a81d27693fcf06c48047e60943a455a67a1c8884a8f8417bc462033877c96099
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
require 'spec_helper' describe Filepreviews::HTTP do let(:http) { Filepreviews::HTTP } describe '.default_connection' do it 'returns a Faraday connection instance' do expect(http.default_connection).to be_an_instance_of(Faraday::Connection) end context 'Overrides Faraday defaults' do it 'configures UserAgent header' do expect(http.default_connection.headers.fetch('User-Agent')) .to eq(Filepreviews::HTTP::USER_AGENT) end it 'configures the Typhoeus Adapter' do expect(http.default_connection.builder.handlers) .to include(Faraday::Adapter::Typhoeus) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filepreviews-1.0.0 | spec/filepreviews/http_spec.rb |