Sha256: 49096f47a319979ed4e499c5ddb29d0e5c8fd628cca9087afb5c29a560d2b8cf

Contents?: true

Size: 431 Bytes

Versions: 44

Compression:

Stored size: 431 Bytes

Contents

require 'rails_helper'

describe LHC::Request do
  it 'does not alter the options that where passed' do
    LHC.configure { |c| c.endpoint(:kpi_tracker, 'http://analytics/track/:entity_id/w', params: { env: 'PROD' }) }
    options = { params: { entity_id: '123' } }
    stub_request(:get, "http://analytics/track/123/w?env=PROD")
    LHC.get(:kpi_tracker, options)
    expect(options).to eq(params: { entity_id: '123' })
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
lhc-6.7.2 spec/request/option_dup_spec.rb
lhc-6.7.1 spec/request/option_dup_spec.rb
lhc-6.7.0 spec/request/option_dup_spec.rb
lhc-6.6.0.zipkin.pre.03 spec/request/option_dup_spec.rb
lhc-6.6.0.zipkin.pre.02 spec/request/option_dup_spec.rb
lhc-6.6.0.zipkin.pre.01 spec/request/option_dup_spec.rb
lhc-6.6.0.zipkin.pre spec/request/option_dup_spec.rb
lhc-6.6.0 spec/request/option_dup_spec.rb
lhc-6.5.0 spec/request/option_dup_spec.rb
lhc-6.4.0 spec/request/option_dup_spec.rb
lhc-6.3.1 spec/request/option_dup_spec.rb
lhc-6.3.0 spec/request/option_dup_spec.rb
lhc-6.2.0 spec/request/option_dup_spec.rb
lhc-6.1.3 spec/request/option_dup_spec.rb
lhc-6.1.2 spec/request/option_dup_spec.rb
lhc-6.1.1 spec/request/option_dup_spec.rb
lhc-6.1.0 spec/request/option_dup_spec.rb
lhc-6.0.1 spec/request/option_dup_spec.rb
lhc-6.0.0 spec/request/option_dup_spec.rb
lhc-5.1.1 spec/request/option_dup_spec.rb