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