Sha256: 049081838fcce2bb2b051e47e1f463fa902ab6b943001fda7abdf95599c9ec6a
Contents?: true
Size: 463 Bytes
Versions: 49
Compression:
Stored size: 463 Bytes
Contents
# frozen_string_literal: true 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
49 entries across 49 versions & 1 rubygems