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

Version Path
finapps_core-5.0.7 spec/middleware/request/user_agent_spec.rb
finapps_core-5.0.6 spec/middleware/request/user_agent_spec.rb
finapps_core-5.0.5 spec/middleware/request/user_agent_spec.rb
finapps_core-5.0.4 spec/middleware/request/user_agent_spec.rb
finapps_core-5.0.3 spec/middleware/request/user_agent_spec.rb
finapps_core-5.0.2 spec/middleware/request/user_agent_spec.rb
finapps_core-5.0.1 spec/middleware/request/user_agent_spec.rb
finapps_core-5.0.0 spec/middleware/request/user_agent_spec.rb
finapps_core-4.0.7 spec/middleware/request/user_agent_spec.rb
finapps_core-4.0.6 spec/middleware/request/user_agent_spec.rb
finapps_core-4.0.5 spec/middleware/request/user_agent_spec.rb
finapps_core-4.0.4 spec/middleware/request/user_agent_spec.rb
finapps_core-4.0.3 spec/middleware/request/user_agent_spec.rb
finapps_core-4.0.2 spec/middleware/request/user_agent_spec.rb
finapps_core-4.0.0 spec/middleware/request/user_agent_spec.rb