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