Sha256: c64e6f8ac46f3bbd19eeaaa8c189850167c5b1b00fecd76b73ea7b1e23f77749
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
# frozen_string_literal: true RSpec.describe FinAppsCore::Middleware::XConsumerId do let(:key) { FinAppsCore::Middleware::XConsumerId::KEY } let(:id) { 'valid_consumer_id' } let(:fake_app) { proc {|env| env } } let(:env) { { request_headers: {} } } describe '#call' do subject { FinAppsCore::Middleware::XConsumerId.new(fake_app, id) } it('generates an X-Consumer-ID header') do expect(subject.call(env)[:request_headers][key]).to eq(id) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
finapps_core-5.0.7 | spec/middleware/request/x_consumer_id_spec.rb |