Sha256: 32ed7b04ab4f19bd51a7cf35d5e909c3580b789baeec4809703c2856ad025d90

Contents?: true

Size: 625 Bytes

Versions: 17

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

module Roqua
  module Healthy
    module A19
      describe CorrectPatientCheck do
        let(:id)     { "12345678" }
        let(:record) { {identities: [{ident: '12345678'}]} }

        it 'returns true if record is for correct patient id' do
          checker = CorrectPatientCheck.new(id, record)
          expect(checker.check).to be_truthy
        end

        it 'returns false if record is for different patient id' do
          checker = CorrectPatientCheck.new('999', record)
          expect(checker.check).to be_falsey
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
roqua-healthy-1.6.0 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.13 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.12 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.11 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.10 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.9 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.8 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.7 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.6 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.5 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.4 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.3 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.2 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.1 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.5.0 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.4.3 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.4.2 spec/unit/a19/correct_patient_check_spec.rb