Sha256: ecc8526c9cc5ba170406e5efc4e8cfeac08a172e02f687cf63257ba5a9fafe0f
Contents?: true
Size: 422 Bytes
Versions: 19
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true RSpec.describe FinAppsCore::Middleware::AcceptJson do let(:fake_app) { proc {|env| env } } describe '#call' do subject { FinAppsCore::Middleware::AcceptJson.new(fake_app) } env = {request_headers: {}} it('generates a UserAgent header') do expect(subject.call(env)[:request_headers][FinAppsCore::Middleware::AcceptJson::KEY]).to eq('application/json') end end end
Version data entries
19 entries across 19 versions & 1 rubygems