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

Version Path
openehr-1.2.8 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.7 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.6 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.5 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.4 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.3 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.2 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.1 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.2.0 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.1.6 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb
openehr-1.1.5 spec/lib/openehr/rm/data_types/text/dv_coded_text_spec.rb