Sha256: e351574c6a6e6c36c00dd7100bdd24519d5444f9941e5f8c6cba8c277d2ae012
Contents?: true
Size: 440 Bytes
Versions: 3
Compression:
Stored size: 440 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lhc-3.4.0 | spec/request/option_dup_spec.rb |
lhc-3.3.0 | spec/request/option_dup_spec.rb |
lhc-3.2.0 | spec/request/option_dup_spec.rb |