Sha256: be154b4be466f1e22dbc4836f8e6407d02a035253d610f2b64ed3b3736949e6b
Contents?: true
Size: 432 Bytes
Versions: 31
Compression:
Stored size: 432 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
31 entries across 31 versions & 1 rubygems