Last change
on this file since 308 was 267, checked in by KOBAYASHI, Shinji, 15 years ago |
bugs fixed around identification
|
File size:
864 bytes
|
Line | |
---|
1 | require File.dirname(__FILE__) + '/../../../../../spec_helper'
|
---|
2 | include OpenEHR::RM::Support::Identification
|
---|
3 |
|
---|
4 | describe TerminologyID do
|
---|
5 | before(:each) do
|
---|
6 | @terminology_id = TerminologyID.new(:value => 'ICD10(2003)')
|
---|
7 | end
|
---|
8 |
|
---|
9 | it 'should be an instance of TerminologyID' do
|
---|
10 | @terminology_id.should be_an_instance_of TerminologyID
|
---|
11 | end
|
---|
12 |
|
---|
13 | it 's name should be ICD10' do
|
---|
14 | @terminology_id.name.should == 'ICD10'
|
---|
15 | end
|
---|
16 |
|
---|
17 | it 's version_id should be 2003' do
|
---|
18 | @terminology_id.version_id.should == '2003'
|
---|
19 | end
|
---|
20 |
|
---|
21 | it 's value should be ICD10(2003)' do
|
---|
22 | @terminology_id.value.should == 'ICD10(2003)'
|
---|
23 | end
|
---|
24 |
|
---|
25 | it 'should only name when version_id is nil' do
|
---|
26 | @terminology_id.version_id = ''
|
---|
27 | @terminology_id.value.should == 'ICD10'
|
---|
28 | end
|
---|
29 |
|
---|
30 | it 'should has another constructor' do
|
---|
31 | @terminology_id = TerminologyID.new(:name => 'SNOMED-CT')
|
---|
32 | end
|
---|
33 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.