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

Version Path
finapps_core-2.0.20 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.19 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.18 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.17 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.16 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.15 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.14 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.13 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.12 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.11 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.10 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.9 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.8 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.7 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.6 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.5 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.4 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.3 spec/middleware/request/accept_json_spec.rb
finapps_core-2.0.2 spec/middleware/request/accept_json_spec.rb