Sha256: ebedd81d4589bbe04f21d96cf4931dd7028710a718367f7117f77850be700083
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true RSpec.describe FinAppsCore::Middleware::RequestId do let(:key) { FinAppsCore::Middleware::RequestId::KEY } let(:id) { 'request_id' } let(:fake_app) { proc {|env| env } } let(:env) { {request_headers: {}} } describe '#call' do subject { FinAppsCore::Middleware::RequestId.new(fake_app, id) } it('generates a X-Request-Id header') do expect(subject.call(env)[:request_headers][key]).to eq(id) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
finapps_core-3.0.6 | spec/middleware/request/request_id_spec.rb |
finapps_core-3.0.5 | spec/middleware/request/request_id_spec.rb |
finapps_core-3.0.3 | spec/middleware/request/request_id_spec.rb |