Sha256: 56c0d64346311be33b28b2a06acde42452f7323895e82fffbba85d3069227a66

Contents?: true

Size: 713 Bytes

Versions: 3

Compression:

Stored size: 713 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
roqua-healthy-1.4.1 spec/integration/mirth_spec.rb
roqua-healthy-1.3.0 spec/integration/mirth_spec.rb
roqua-healthy-1.2.1 spec/integration/mirth_spec.rb