Sha256: 62f2adea0e1bdabd1fc422c46770304e94a84c0d14c5a05cfc46324d40c39e9f

Contents?: true

Size: 310 Bytes

Versions: 6

Compression:

Stored size: 310 Bytes

Contents

require 'rails_helper'

describe LHC::Request do
  it 'provides request headers' do
    stub_request(:get, 'http://local.ch')
    response = LHC.get('http://local.ch')
    request = response.request
    expect(request.headers).to eq("User-Agent" => "Typhoeus - https://github.com/typhoeus/typhoeus")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lhc-3.5.5 spec/request/headers_spec.rb
lhc-3.5.4 spec/request/headers_spec.rb
lhc-3.5.3 spec/request/headers_spec.rb
lhc-3.5.2 spec/request/headers_spec.rb
lhc-3.5.1 spec/request/headers_spec.rb
lhc-3.5.0 spec/request/headers_spec.rb