Sha256: 0bd62121f3b7c764df7988c4683f5617a07bc897f21c17cff1658a7658d0a2c1

Contents?: true

Size: 561 Bytes

Versions: 19

Compression:

Stored size: 561 Bytes

Contents

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

describe ADLParser do
  context 'Structure spec' do
    before(:all) do
      archetype = adl14_archetype('openEHR-EHR-CLUSTER.auscultation.v1.adl')
      @definition = archetype.definition
    end

    it 'rm type name is CLUSTER' do
      @definition.rm_type_name.should == 'CLUSTER'
    end

    it '1st attribute type name is items' do
      @definition.attributes[0].rm_attribute_name.should ==
        'items'
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.7 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.6 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.5 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.4 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.3 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.2 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.1 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.2.0 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.1.6 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.1.5 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.1.4 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.1.3 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.1.2 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.1.1 spec/lib/openehr/parser/structure_nested_comments_spec.rb
openehr-1.1.0 spec/lib/openehr/parser/structure_nested_comments_spec.rb
open_ehr-1.0.2 spec/lib/open_ehr/parser/structure_nested_comments_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/parser/structure_nested_comments_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/parser/structure_nested_comments_spec.rb