Sha256: 59c1bbe21ad0371357259ceb9f591d8265c9f052c85664661723cbf3618137ff

Contents?: true

Size: 779 Bytes

Versions: 6

Compression:

Stored size: 779 Bytes

Contents

require 'spec_helper'

describe "references" do

  describe ':to_s' do

    context 'patient' do

      let(:patient)             { LifenFhir::Patient.new(uuid: "valid_patient_uuid") }

      it 'works' do
        expect(patient.reference).to eq("Patient/valid_patient_uuid")
      end

    end

    context 'practitioner' do

      let(:practitioner)        { LifenFhir::Practitioner.new(uuid: "valid_practitioner_uuid") }

      it 'works' do
        expect(practitioner.reference).to eq("Practitioner/valid_practitioner_uuid")
      end

    end

    context 'binary' do

      let(:binary)              { LifenFhir::Binary.new(uuid: "valid_binary_uuid") }

      it 'works' do
        expect(binary.reference).to eq("Binary/valid_binary_uuid")
      end

    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lifen_fhir-0.7.1 spec/reference_spec.rb
lifen_fhir-0.7.0 spec/reference_spec.rb
lifen_fhir-0.6.1 spec/reference_spec.rb
lifen_fhir-0.6.0 spec/reference_spec.rb
lifen_fhir-0.5.0 spec/reference_spec.rb
lifen_fhir-0.4.2 spec/reference_spec.rb