Sha256: c1e514282f3747fe8883791971819dd527bdf505064d113907840fb82cee50b6

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'
require File.dirname(__FILE__) + '/parser_spec_helper'

shared_examples 'empty use archetypes' do
  describe 'empty use is assigned nil to be valid archtype' do
    it 'is not nil' do
      subject.should_not be_nil
    end
  end

  describe 'description for use is nil' do
    it 'use is nil' do
      subject.description.details['en'].use.should be_nil
    end
  end
end

describe 'openEHR-EHR-OBSERVATION.operation_record.v1.adl' do
  subject { adl14_archetype('openEHR-EHR-OBSERVATION.operation_record.v1.adl') }
  it_should_behave_like 'empty use archetypes'
end

describe 'openEHR-EHR-CLUSTER.exam-abdomen.v1.adl' do
  subject { adl14_archetype('openEHR-EHR-CLUSTER.exam-abdomen.v1.adl') }
  it_should_behave_like 'empty use archetypes'
end

describe 'openEHR-EHR-OBSERVATION.uterine_contractions.v1.adl' do
  subject { adl14_archetype('openEHR-EHR-OBSERVATION.uterine_contractions.v1.adl') }
  it_should_behave_like 'empty use archetypes'
end

describe 'openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl' do
  subject { adl14_archetype('openEHR-EHR-CLUSTER.exam-uterine_cervix.v1.adl') }
  it_should_behave_like 'empty use archetypes'
end

describe 'openEHR-EHR-CLUSTER.exam-uterus.v1.adl' do
  subject { adl14_archetype('openEHR-EHR-CLUSTER.exam-uterus.v1.adl') }
  it_should_behave_like 'empty use archetypes'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openehr-1.1.3 spec/lib/openehr/parser/empty_use_spec.rb
openehr-1.1.2 spec/lib/openehr/parser/empty_use_spec.rb