Ignore:
Timestamp:
Apr 25, 2010, 5:21:15 PM (14 years ago)
Author:
KOBAYASHI, Shinji
Message:

implemented adl_serializer ontology spec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/spec/lib/open_ehr/serializer/sample_archetype_spec.rb

    r408 r412  
    99shared_examples_for 'sample archetype' do
    1010  before(:all) do
    11     terminologies_available = Set.new('ja')
    12     term_codes = ['at0000']
    13     archetype_term = ArchetypeTerm.new(:code => 'ja',
     11    archetype_term = ArchetypeTerm.new(:code => 'at0000',
    1412                                       :items => {'text' => 'simple test',
    1513                                         'description' => 'simple test for serializer'})
    16     term_definitions = {'ja' => {'at0000' => archetype_term}}
     14    term_definitions = {'ja' => [archetype_term]}
    1715    ontology =
    18       ArchetypeOntology.new(:terminologies_available => terminologies_available,
    19                             :specialisation_depth => 0,
    20                             :term_codes => term_codes,
    21                             :constraint_codes => [],
    22                             :term_attribute_names => ['text','description'],
     16      ArchetypeOntology.new(:specialisation_depth => 0,
    2317                            :term_definitions => term_definitions)
    2418    archetype_id = ArchetypeID.new(:value =>
Note: See TracChangeset for help on using the changeset viewer.