Sha256: 95dd70841246c9e0ca20bc617994b2bf2a18642c3c3c4e5272dc9a253b154e84
Contents?: true
Size: 865 Bytes
Versions: 11
Compression:
Stored size: 865 Bytes
Contents
require File.dirname(__FILE__) + '/../../../../../spec_helper' module OpenEHR module RM module DataTypes module Text describe DvCodedText do let(:dv_coded_text) { defining_code = double(CodePhrase) defining_code.stub(:code_string).and_return('Acute myeloid leukemia') DvCodedText.new(value: 'C920', defining_code: defining_code) } it "should be_an_instance_of DvCodedText" do dv_coded_text.should be_an_instance_of DvCodedText end it 'value should be assigned valid' do dv_coded_text.value.should == 'C920' end it 'defining code string is Acute myeloid leukemia' do dv_coded_text.defining_code.code_string.should == 'Acute myeloid leukemia' end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems