Sha256: f0853ffc756df4974840bb90abf8a49f44866e86fb148877680d957a0fc10c7a
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
require 'spec_helper' describe LifenFhir::Reference do describe ':to_s' do let(:patient) { LifenFhir::Patient.new(uuid: "valid_patient_uuid") } let(:practitioner) { LifenFhir::Practitioner.new(uuid: "valid_practitioner_uuid") } let(:binary) { LifenFhir::Binary.new(uuid: "valid_binary_uuid") } it 'works' do expect(LifenFhir::Reference.new(patient).to_s).to eq("Patient/valid_patient_uuid") expect(LifenFhir::Reference.new(practitioner).to_s).to eq("Practitioner/valid_practitioner_uuid") expect(LifenFhir::Reference.new(binary).to_s).to eq("Binary/valid_binary_uuid") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lifen_fhir-0.4.1 | spec/reference_spec.rb |
lifen_fhir-0.4.0 | spec/reference_spec.rb |