Sha256: a51759eecd83b58424c5deb261d9a9cfd077275ef87f762ff773f3f9d50452c0

Contents?: true

Size: 659 Bytes

Versions: 26

Compression:

Stored size: 659 Bytes

Contents

require File.dirname(__FILE__) + '/../../../../../../spec_helper'
include OpenEHR::RM::DataStructures::ItemStructure::Representation
include OpenEHR::RM::DataTypes::Text

describe Element do
  before(:each) do
    value = DvText.new(:value => 'test')
    @element = Element.new(:archetype_node_id => 'at0001',
                           :name => DvText.new(:value => 'element'),
                           :value => value)
  end

  it 'should be an instance of Element' do
    @element.should be_an_instance_of Element
  end

  it 'value should be assigned as test' do
    @element.value.value.should == 'test'
  end

  it 'nullflavor should be assigned'
end

Version data entries

26 entries across 26 versions & 2 rubygems

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