source: ruby/trunk/spec/lib/open_ehr/serializer/adl_serializer_spec.rb@ 406

Last change on this file since 406 was 406, checked in by KOBAYASHI, Shinji, 14 years ago

serializer implementation

File size: 674 bytes
Line 
1require File.dirname(__FILE__) + '/../../../spec_helper'
2require File.dirname(__FILE__) + '/sample_archetype_spec'
3include OpenEHR::Serializer
4include OpenEHR::AM::Archetype
5include OpenEHR::RM::Support::Identification
6
7describe ADLSerializer do
8 it_should_behave_like 'sample archetype'
9
10 before(:each) do
11 @adl_serializer = ADLSerializer.new(@archetype)
12 end
13
14 it 'should be an instance of ADLSerializer' do
15 @adl_serializer.should be_an_instance_of ADLSerializer
16 end
17
18 it 'header should return archetype context' do
19 @adl_serializer.header.should == <<HERE
20archetype (adl_version = 1.4)
21\tadl-test-ENTRY.most_minimal.v1
22
23concept
24\t[at0000]
25HERE
26 end
27end
Note: See TracBrowser for help on using the repository browser.