Sha256: d7af53fd4c08c86fccb89e386e15d33b2dbce04c207c5b8f268c67456012b1ad

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 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 = described_class.new(raw_response, nil)
      expect(response.headers).to eq headers
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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