Sha256: ce1928f8a13ea91c3a5e961c5e864973581425ae3ac6d5cb508cc4ec19b01a5d

Contents?: true

Size: 694 Bytes

Versions: 26

Compression:

Stored size: 694 Bytes

Contents

require File.dirname(__FILE__) + '/../../../../../spec_helper'
include OpenEHR::RM::DataTypes::Text
include OpenEHR::RM::Support::Identification

describe CodePhrase do
  before(:each) do
    terminology_id = TerminologyID.new(:value => 'openehr')
    @code_phrase = CodePhrase.new(:code_string => '535',
                                  :terminology_id => terminology_id)
  end

  it 'should be an instance of CodePhrase' do
    @code_phrase.should be_an_instance_of CodePhrase
  end

  it 's code_string should be 535' do
    @code_phrase.code_string.should == '535'
  end

  it 's terminology_id.name should be openehr' do
    @code_phrase.terminology_id.name.should == 'openehr'
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
openehr-1.2.8 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.7 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.6 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.5 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.4 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.3 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.2 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.1 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.2.0 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.1.6 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.1.5 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.1.4 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.1.3 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.1.2 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.1.1 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
openehr-1.1.0 spec/lib/openehr/rm/data_types/text/code_phrase_spec.rb
open_ehr-1.0.2 spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb
open_ehr-1.0.1 spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb
open_ehr-1.0.0 spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb
open_ehr-0.9.5 spec/lib/open_ehr/rm/data_types/text/code_phrase_spec.rb