Sha256: e9a3f991130cac709428d3ab1be3599302aa7bd35c5ff7df29562e16532320d6

Contents?: true

Size: 732 Bytes

Versions: 20

Compression:

Stored size: 732 Bytes

Contents

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

# ticket 167

describe ADLParser do
  context 'Archetype uncommon keys' do
    before(:all) do
      archetype = adl14_archetype('adl-test-entry.archetype_uncommonkeys.test.adl')
      @aterm = archetype.ontology.term_definition(:lang => 'en', :code => 'at0000')
    end

    it 's anotherkey value is another key value' do
      @aterm.items['anotherkey'].should == 'another key value'
    end

    it 's text value is test text' do
      @aterm.items['text'].should == 'test text'
    end

    it 's description is test description' do
      @aterm.items['description'].should == 'test description'
    end
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

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