Sha256: b25147df465db5454ccb630641f580fbacd06984fb8836a7a2e7d9718e2b3937

Contents?: true

Size: 410 Bytes

Versions: 24

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true
RSpec.describe FinApps::Middleware::AcceptJson do
  let(:fake_app) { proc {|env| env } }
  describe '#call' do
    subject { FinApps::Middleware::AcceptJson.new(fake_app) }
    env = {request_headers: {}}

    it('generates a UserAgent header') do
      expect(subject.call(env)[:request_headers][FinApps::Middleware::AcceptJson::KEY]).to eq('application/json')
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
finapps-2.0.13 spec/middleware/accept_json_spec.rb
finapps-2.0.12 spec/middleware/accept_json_spec.rb
finapps-2.0.11 spec/middleware/accept_json_spec.rb
finapps-2.0.10 spec/middleware/accept_json_spec.rb