Last change
on this file since 406 was 406, checked in by KOBAYASHI, Shinji, 14 years ago |
serializer implementation
|
File size:
674 bytes
|
Line | |
---|
1 | require File.dirname(__FILE__) + '/../../../spec_helper'
|
---|
2 | require File.dirname(__FILE__) + '/sample_archetype_spec'
|
---|
3 | include OpenEHR::Serializer
|
---|
4 | include OpenEHR::AM::Archetype
|
---|
5 | include OpenEHR::RM::Support::Identification
|
---|
6 |
|
---|
7 | describe 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
|
---|
20 | archetype (adl_version = 1.4)
|
---|
21 | \tadl-test-ENTRY.most_minimal.v1
|
---|
22 |
|
---|
23 | concept
|
---|
24 | \t[at0000]
|
---|
25 | HERE
|
---|
26 | end
|
---|
27 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.