Sha256: 2b329e13888281e2e28045d0c0d4dc8860fc59a104e16db9bdaecf46864a392d

Contents?: true

Size: 594 Bytes

Versions: 14

Compression:

Stored size: 594 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

14 entries across 14 versions & 1 rubygems

Version Path
roqua-healthy-1.2.0 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.9 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.8 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.7 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.6 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.5 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.4 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.3 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.2 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.1 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.1.0 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.0.2 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.0.1 spec/unit/a19/correct_patient_check_spec.rb
roqua-healthy-1.0.0 spec/unit/a19/correct_patient_check_spec.rb