Sha256: bb8f4629bb8bbf495012200068eefd017032eee5327f7637e89f45f697a8afdd

Contents?: true

Size: 341 Bytes

Versions: 70

Compression:

Stored size: 341 Bytes

Contents

require 'rails_helper'

describe LHC::Response do
  context 'headers' do
    let(:options) do
      { 'return_code' => :ok }
    end

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

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

Version data entries

70 entries across 70 versions & 1 rubygems

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