From c8a978f58348ac7fffe9aee73cfe2255198ab9e5 Mon Sep 17 00:00:00 2001 From: 360dgries Date: Wed, 27 Dec 2023 13:10:07 -0500 Subject: [PATCH] Adjust spec test --- spec/lib/fhir_models/bootstrap/model_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/fhir_models/bootstrap/model_spec.rb b/spec/lib/fhir_models/bootstrap/model_spec.rb index 0c36e37..4dd9e80 100644 --- a/spec/lib/fhir_models/bootstrap/model_spec.rb +++ b/spec/lib/fhir_models/bootstrap/model_spec.rb @@ -85,13 +85,13 @@ describe '#respond_to?' do it 'returns true for :value on choice elements' do - extension = FHIR::Extension.new(valueInteger: 5) + extension = FHIR::DSTU2::Extension.new(valueInteger: 5) expect(extension.value).to eq(5) expect(extension.respond_to? :value).to be_truthy end it 'returns false for :value on nonchoice elements' do - range = FHIR::Range.new(low: FHIR::Quantity.new(value: 18)) + range = FHIR::DSTU2::Range.new(low: {value: 18}) expect(range.respond_to? :value).to eq(false) end end