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.1.4 spec/middleware/request/accept_json_spec.rb
finapps-2.1.3 spec/middleware/request/accept_json_spec.rb
finapps-2.1.2 spec/middleware/request/accept_json_spec.rb
finapps-2.1.1 spec/middleware/request/accept_json_spec.rb
finapps-2.0.30 spec/middleware/request/accept_json_spec.rb
finapps-2.0.29 spec/middleware/request/accept_json_spec.rb
finapps-2.0.28 spec/middleware/request/accept_json_spec.rb
finapps-2.0.27 spec/middleware/request/accept_json_spec.rb
finapps-2.0.26 spec/middleware/request/accept_json_spec.rb
finapps-2.0.25 spec/middleware/request/accept_json_spec.rb
finapps-2.0.24 spec/middleware/request/accept_json_spec.rb
finapps-2.0.23 spec/middleware/request/accept_json_spec.rb
finapps-2.0.22 spec/middleware/request/accept_json_spec.rb
finapps-2.0.21 spec/middleware/request/accept_json_spec.rb
finapps-2.0.20 spec/middleware/request/accept_json_spec.rb
finapps-2.0.19 spec/middleware/request/accept_json_spec.rb
finapps-2.0.17 spec/middleware/request/accept_json_spec.rb
finapps-2.0.16 spec/middleware/accept_json_spec.rb
finapps-2.0.15 spec/middleware/accept_json_spec.rb
finapps-2.0.14 spec/middleware/accept_json_spec.rb