Sha256: b58ed61666ea50bed8fc5161f1bb6ecf8ee286d4cb30fef255eaa0d923912d18

Contents?: true

Size: 381 Bytes

Versions: 49

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

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

49 entries across 49 versions & 1 rubygems

Version Path
lhc-15.2.1 spec/response/headers_spec.rb
lhc-15.2.0 spec/response/headers_spec.rb
lhc-15.1.3 spec/response/headers_spec.rb
lhc-15.1.2 spec/response/headers_spec.rb
lhc-15.1.1 spec/response/headers_spec.rb
lhc-15.1.0 spec/response/headers_spec.rb
lhc-16.0.0.pre.pro2162.2 spec/response/headers_spec.rb
lhc-16.0.0.pre.pro2162 spec/response/headers_spec.rb
lhc-15.0.1 spec/response/headers_spec.rb
lhc-15.0.0 spec/response/headers_spec.rb
lhc-14.0.0 spec/response/headers_spec.rb
lhc-13.4.0.pre.pro1766.1 spec/response/headers_spec.rb
lhc-13.2.0 spec/response/headers_spec.rb
lhc-13.1.0 spec/response/headers_spec.rb
lhc-13.0.0 spec/response/headers_spec.rb
lhc-12.3.0 spec/response/headers_spec.rb
lhc-12.2.1 spec/response/headers_spec.rb
lhc-12.2.0 spec/response/headers_spec.rb
lhc-12.1.3 spec/response/headers_spec.rb
lhc-12.1.2 spec/response/headers_spec.rb