Sha256: 151ba492d3e4a7477750b8da533c995595b5f8991a0fbf41a24e82df620827c7
Contents?: true
Size: 462 Bytes
Versions: 7
Compression:
Stored size: 462 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.lb-service/track/:entity_id/w', { params: { env: 'PROD' } }) } options = { params: { entity_id: '123' } } stub_request(:get, "http://analytics.lb-service/track/123/w?env=PROD") LHC.get(:kpi_tracker, options) expect(options).to eq({ params: { entity_id: '123' } }) end end
Version data entries
7 entries across 7 versions & 1 rubygems