Sha256: 6f641bf030d2e2f4945c948d529b525ff030711ce1d3930869dc4e18222d5b5f

Contents?: true

Size: 350 Bytes

Versions: 70

Compression:

Stored size: 350 Bytes

Contents

require 'rails_helper'

describe LHC::Response do
  context 'headers' do
    let(:headers) do
      { 'Content-Encoding' => 'UTF-8' }
    end

    let(:raw_response) { OpenStruct.new(headers: headers) }

    it 'provides headers' do
      response = LHC::Response.new(raw_response, nil)
      expect(response.headers).to eq headers
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

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