Skip to content

Commit

Permalink
Adjust spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
360dgries committed Dec 27, 2023
1 parent 0b9b35c commit c8a978f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/fhir_models/bootstrap/model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8a978f

Please sign in to comment.