Sha256: ace2fc0b28e847f99649c6ef531b7f93c805ce5d16da76a81f8ecfe1c23118c9
Contents?: true
Size: 426 Bytes
Versions: 15
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true RSpec.describe FinAppsCore::Middleware::UserAgent do let(:fake_app) { proc {|env| env } } describe '#call' do subject { FinAppsCore::Middleware::UserAgent.new(fake_app) } env = { request_headers: {} } it('generates a UserAgent header') do expect(subject.call(env)[:request_headers][FinAppsCore::Middleware::UserAgent::KEY]).to start_with('finapps-ruby') end end end
Version data entries
15 entries across 15 versions & 1 rubygems