Sha256: dac189e1a9920f59619a82558c5908895befce132459a6e8637aac9593cd7cb0
Contents?: true
Size: 864 Bytes
Versions: 26
Compression:
Stored size: 864 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../../spec_helper' include OpenEHR::RM::Support::Identification describe TerminologyID do before(:each) do @terminology_id = TerminologyID.new(:value => 'ICD10(2003)') end it 'should be an instance of TerminologyID' do @terminology_id.should be_an_instance_of TerminologyID end it 's name should be ICD10' do @terminology_id.name.should == 'ICD10' end it 's version_id should be 2003' do @terminology_id.version_id.should == '2003' end it 's value should be ICD10(2003)' do @terminology_id.value.should == 'ICD10(2003)' end it 'should only name when version_id is nil' do @terminology_id.version_id = '' @terminology_id.value.should == 'ICD10' end it 'should has another constructor' do @terminology_id = TerminologyID.new(:name => 'SNOMED-CT') end end
Version data entries
26 entries across 26 versions & 2 rubygems