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-5.1.0 spec/request/option_dup_spec.rb
lhc-5.0.3 spec/request/option_dup_spec.rb
lhc-5.0.2 spec/request/option_dup_spec.rb
lhc-5.0.1 spec/request/option_dup_spec.rb
lhc-5.0.0 spec/request/option_dup_spec.rb
lhc-4.0.2 spec/request/option_dup_spec.rb
lhc-4.0.1 spec/request/option_dup_spec.rb
lhc-4.0.0 spec/request/option_dup_spec.rb
lhc-3.8.1 spec/request/option_dup_spec.rb
lhc-3.8.0 spec/request/option_dup_spec.rb
lhc-3.7.3 spec/request/option_dup_spec.rb
lhc-3.7.2 spec/request/option_dup_spec.rb
lhc-3.7.2.1 spec/request/option_dup_spec.rb
lhc-3.7.1 spec/request/option_dup_spec.rb
lhc-3.7.0 spec/request/option_dup_spec.rb
lhc-3.7.0.pre1 spec/request/option_dup_spec.rb
lhc-3.6.1 spec/request/option_dup_spec.rb
lhc-3.6.0 spec/request/option_dup_spec.rb
lhc-3.5.5 spec/request/option_dup_spec.rb
lhc-3.5.4 spec/request/option_dup_spec.rb