Sha256: d501a6c02c7d1fb83040b7b60701c1a39011b0385c6bb038d9b77fdd458c0189

Contents?: true

Size: 266 Bytes

Versions: 69

Compression:

Stored size: 266 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.keys).to include 'User-Agent'
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
lhc-10.1.2 spec/request/headers_spec.rb
lhc-10.1.1 spec/request/headers_spec.rb
lhc-10.1.0 spec/request/headers_spec.rb
lhc-10.0.2 spec/request/headers_spec.rb
lhc-9.4.4 spec/request/headers_spec.rb
lhc-10.0.1 spec/request/headers_spec.rb
lhc-10.0.0 spec/request/headers_spec.rb
lhc-9.4.3 spec/request/headers_spec.rb
lhc-9.4.2 spec/request/headers_spec.rb
lhc-9.4.1 spec/request/headers_spec.rb
lhc-9.4.0 spec/request/headers_spec.rb
lhc-9.3.1 spec/request/headers_spec.rb
lhc-9.3.0 spec/request/headers_spec.rb
lhc-9.2.0 spec/request/headers_spec.rb
lhc-9.1.2 spec/request/headers_spec.rb
lhc-9.1.2.pre spec/request/headers_spec.rb
lhc-9.1.1 spec/request/headers_spec.rb
lhc-8.1.1 spec/request/headers_spec.rb
lhc-9.1.0 spec/request/headers_spec.rb
lhc-9.0.0 spec/request/headers_spec.rb