Sha256: f11ce39054dc1a8491638b641f74f06010feabafbcc88a9adb6fc858889f885c

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
roqua-healthy-1.4.1 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.3.0 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.2.1 spec/unit/a19/correct_patient_check_spec.rb