Sha256: 119ca427523d6df289497db53c614f3fcde682bb918e3f88f9c7b866357fa4c0

Contents?: true

Size: 740 Bytes

Versions: 9

Compression:

Stored size: 740 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 'comez_patient', '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

9 entries across 9 versions & 1 rubygems

Version Path
roqua-healthy-1.6.0 spec/integration/mirth_spec.rb
roqua-healthy-1.5.13 spec/integration/mirth_spec.rb
roqua-healthy-1.5.12 spec/integration/mirth_spec.rb
roqua-healthy-1.5.11 spec/integration/mirth_spec.rb
roqua-healthy-1.5.10 spec/integration/mirth_spec.rb
roqua-healthy-1.5.9 spec/integration/mirth_spec.rb
roqua-healthy-1.5.8 spec/integration/mirth_spec.rb
roqua-healthy-1.5.7 spec/integration/mirth_spec.rb
roqua-healthy-1.5.6 spec/integration/mirth_spec.rb