Sha256: f890065cb2e482ae475022c62049dea75730722ae680ec3d2e7c0019cacc5e7f

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 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

10 entries across 10 versions & 1 rubygems

Version Path
lhc-3.4.0 spec/response/headers_spec.rb
lhc-3.3.0 spec/response/headers_spec.rb
lhc-3.2.0 spec/response/headers_spec.rb
lhc-3.1.1 spec/response/headers_spec.rb
lhc-3.1.0 spec/response/headers_spec.rb
lhc-3.0.0 spec/response/headers_spec.rb
lhc-2.0.0 spec/response/headers_spec.rb
lhc-1.2.0 spec/response/headers_spec.rb
lhc-1.1.0 spec/response/headers_spec.rb
lhc-0.2.1 spec/response/headers_spec.rb