Sha256: 27ad0813f1b210aae10f0c2b8e0a7755ed0ce9d8532b9e0fffc9398ede341990

Contents?: true

Size: 743 Bytes

Versions: 8

Compression:

Stored size: 743 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe 'Accounting for Mirth bugs' do
  describe 'when the wrong patient is returned' do
    # Mirth has an awful bug where it will sometimes return responses out of sync
    # with the actual requests. Mirth support has been entirely unhelpful in
    # working with us to resolve this bug. Hence the need to at least stop the
    # badness on this level, make sure we don't pollute our caches with patient
    # details that don't belong to the patient we requested.

    before { load_fixture 'cdis_jan_fictief', '12345678' }

    it 'raises an error' do
      expect { Roqua::Healthy::A19.fetch("12345678") }.to raise_error(Roqua::Healthy::MirthErrors::WrongPatient)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roqua-healthy-1.5.5 spec/integration/mirth_spec.rb
roqua-healthy-1.5.4 spec/integration/mirth_spec.rb
roqua-healthy-1.5.3 spec/integration/mirth_spec.rb
roqua-healthy-1.5.2 spec/integration/mirth_spec.rb
roqua-healthy-1.5.1 spec/integration/mirth_spec.rb
roqua-healthy-1.5.0 spec/integration/mirth_spec.rb
roqua-healthy-1.4.3 spec/integration/mirth_spec.rb
roqua-healthy-1.4.2 spec/integration/mirth_spec.rb