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